Tagging - Trim the selected string item

When taggingLabel is used a space is inserted between search and the taggingLabel.
When the item is pushed to the selected array, only the tagginLabel is removed. Not the extra space