Anagram trimmer