Insert replaceText code