simple string problem

search and replace, do not use strstr().