The string.scanReplace() API allows you to find and replace a string within another string.
- Value - value to find
- Replace with - value to replace with
- Index (optional) - start scan from this index; the first character in the string is considered index 1; if omitted, the search starts from the beginning of the string
- Length to search (optional) - if omitted, the rest of the string is searched