fixing tag parser

be more robust in case of various number of subsequent separators