String find and replace

here i have manually implemented find and replace... here find will
search for a string and replaces with the given string