Get all anagrams of an input string and it's substrings.