Only trim from right end of text nodes.