Added the prototype for the replaceAll function