Anagram minimizer