[[ Bug 13900 ]] Fix MCIdeScriptReplace for any start index of 0