def is_token(token):
    """Checks if token is a valid token."""
    if len(token) == 0:
        return False
    if not token.isprintable():
        return False
    if " " in token:
        return False
    return True