Fix stringReplace tests to use stringReplace