So I am writing a function that takes in a string input (ex: abcdefg) and a shorter portion of that input (ex: cde) and searches for it within the first longer string.
How do I make it so that only that second portion is capitalized in the first string?
Ex:
- Input 1: abcdefg
- Input 2: cde
- abCDEfg