finished isAnagrams