make anagrams space and string-length agnostic.