added search and replace string function