Tag - subsequence of a string in c++