Anagram refolding