get anagram list as a method and require string argument