Support for text replacement