convert string to a text node