Fixing issue that caused an empty string to be produced when StrReplace found no substring
Adding StartIdx argument to StrReplace