Anagram retransforming