stringutil: Add early-exit case to ReplaceAll

If both 'replaceands' are the same, the result string can just be returned.
Merge pull request #245 from lioncash/earlyexit

stringutil: Add early-exit case to ReplaceAll