Anagram compactions