def string_check(function):
    """
    A function which uses isinstance to determine whether an object is a string.
    """
    
    def wrapper(character):
        # string_check raises assertionError
        # if the character is not a string
        assert isinstance(character, str),\
        "Please enter a string and not %s" % (character)
        return function(character)
    return wrapper

    A function which uses isinstance to determine whether an object is a string.
    
recipes/Python/577265_Anagrams_vowels_and_consonants/recipe-577265.py