anagram condition check