anagram rewrite