Tiny comment - `StringTokenizer` is considered just about deprecated (http://docs.oracle.com/javase/7/docs/api/java/util/StringTokenizer.html). Guava's `Splitter` does a better job and can return delimiters, and is already available in the project.