stringutil: Add early-exit case to ReplaceAll

If both 'replaceands' are the same (which would be bad, but anyway) the result string can just be returned.