corrects search and replace strin