record only commit fixing earlier merge without -x
* Patch by Rika to have a char specific TStringHelper.replace. Probably faster with low number of char matches. closes #39707
* also raise rangeerror for startindex<0 in previous committed join() patch.
(cherry picked from commit 9ad1995c6d139d2692703accc23a71f4db6ea63b)