Anagram straitening