I have a String in which there are 5 tokens taht are delimited by tabs ("\t"). I was using the StringTokenizer to parse this line and get individual tokens. It worked fine, till I encountered a situation where there were 2 tabs (instead of 1). Now, since StringTokenizer doesn't return me an empty string, how can I find out if there is a consecutive occurrence of that token. I know that the 3rd constructore of String Tokenizer has a boolean argument that can be set true, but it doesn't seem to be doing god to me!!