add find and replace text function