You need to extract the server name and token from a URI in the format http://SERVER_NAME/?token=SOME_SYMBOLS. The server name and token can contain alphanumeric characters. You want to display the extracted information as s"Server: $SERVER_NAME and token: $TOKEN".
If you can't parse a string, your function must return "Error".