In the QIIME 2 2018.2
release, Metadata ignores any leading or trailing whitespace characters in cells, avoiding the issue reported in this topic.
There are a number of other changes to QIIME 2 Metadata in the 2018.2
release. See this forum announcement for details on what changed, as well as the updated Metadata tutorial.