The StringTokenizer is a weird class. It only tokenizes String s on a character or a set of characters, each of which individually forms the token delimiter. It doesn't actually tokenize based on a complete String . Using it in that manner can cause a lot of bugs!
Random techie stuff