Is there any alternative ( other than substring ) that can be used instead of StringTokenizer ??? Actually, I am facing a problem with StringTokenizer. If I have a string with a character '=' in it, then the following code results in false tokens : StringTokenizer valToken = new StringTokenizer(val,"==>"); while(valToken.hasMoreTokens()) { valno = valToken.nextToken(); valdate= valToken.nextToken(); }