Create substrings of a string