Strip whitespace from the tags.

[Fix #49256965]