In Java, the stringtokenizer or string.split() commands (only because stringtokenizer is deprecated) basically would allow a lot of that functionality.

If I had to do this, I'd run each of the...