Rename substrings of a string to String/substrings of a string