Is there a way to replace multiple indexes for a single string in one command?
If I supply more than one index value for a single string the string is duplicated for each value with only that values index replaced.
Example: Replacing the following string/sentence at index 10 and 20 with “!”.
This is a sample string sentence.
Results in two outputs:
This is a !sample string sentence.
This is a sample str!ing sentence.
The ideal solution would be This is a !sample str!ing sentence.