INTEG-260: Update PR: Change from replaceAll to replace to avoid the problem of performance.