find all substrings in a string