Refractored AnagramGenerator