added a option to xah-find-replace-text, whether to write to file