Anagram exiting