Anagram misfunctioned