bugfix: trim node contents