Anagram purifying