fixed trailing whitespace problem in tagging