Trim the tag when creating nodes