
def anagram(s1, s2):

    s1 = s1.replace(" ","").lower()
    s2 = s2.replace(" ", "").lower()
    if sorted(s1) == sorted(s2):
        return True
    return False


print anagram("clint eastwood", "old west action")