Anagram rewriter