Added anagrams and unique characters check