Added functions for replacing text in find/replace