FORUM-751: Modify replaceAll to replace to avoid the problem of performance.