anagram detection test