Added option to replace original text