i have this code which is below but it will not test to see if between 2 delimeters is a empty string or not. all it does is to test the first and last tokens. how do i test to see if there is a string between 2 delimeters or not and if there is not i would like it to go into a vector. but i still want the code below any ideas please thanks ben while (s.hasMoreTokens()) { token = s.nextToken(); if (lastToken){ if (token.equals(",")) { v.add(""); } lastToken = false; } if (! token.equals(",")) { v.add(token); } } if (token.equals(",")) { v.add(""); }