Improve the replace parameters.