Added a replaceAll function