Anagram trimming