Added support for replace text content of a node.