Is there a function that can replace a string within a string once at a specific index? Example:
var string1="my text is my text";
var string2="my";
string1.replaceAt(string2,"your",10);
and the resultant output would be "my text is your text", Or:
var string1="my text is my text";
var string2="my";
string1.replaceAt(string2,"your",0);
in which case the result would be "your text is my text".