Adding anagrams verification function

Note that this function assumes that every character is different. Even
count for space is also considered valid two characters.