Anagram invagination