Anagram recovery