Implemented search and replace