String object charAt(index) question.

I'm usually embarrassed by the spaghettiness (is that a word?) of my code

Yes, it is. If you post your code, we promise not to laugh at it (at least, not too long). Code reviews are a great way to learn to write better code.