- better handling of tags when editing nodes

fix bug trimining 'a', 't' and 'g'