Anagram consolidating