Improve robustness of filename parsing.
Simplicity over overzealous optimization.
Change name of method tagSetFromTagArray for consistency.
Refactor handling of the remove operation. Slight optimization for the wildcard case.