Filter out whitespace in tags

Filter out redundant tags