Added the replace() function.