add delimited tag names and strip whitespace