change the replace method
change the replace Method