Anagram compactor