check anagram

Anagram is a word, phrase, or name formed by rearranged the letters of another word. One example could be 'mary' and 'army', these two words are anagram. The function returns True if two strings are anagram, and False if they are not.