Add ensure string helper for nodes.
Change how hidden input is appended
Fixes #360