def all_in_charset(chars, string):
    """Returns true if string's characters are in chars, false otherwise
    :param chars: Set of characters to test characters in string against
    :param string: The string to test
    :return bool: Whether the characters in string are wholly within chars"""
    for c in string:
        if c not in chars:
            return False
    return True