Adding text support to node constructors.