function ReplaceString takes string str, string strToFind, integer start, string strToReplace returns string
local integer i = FindString(str, strToFind, start)
return SubString(str, start, i) + strToReplace + SubString(str, i+StringLength(strToFind), StringLength(str))
endfunction