adding anagram check