trim spaces

Trim spaces to not allow add a space character as a tag