Strip whitespace from tags