grouping consecutive spaces into a single token