stringutil: Add early-exit case to ReplaceAll

If both 'replaceands' are the same, the result string can just be returned.