Add method replaceText(String).