No, the program is just me fooling around building a very basic scripting language (quite useless, actually, since it can only do about 4 things, but its good training). Basically I am using an iterator to move through a string that is being read from a file. There is a class that does that already, moving through a string the way I want that is, but I didnt realize that until after I made the iterator, and since my code works as I want I didnt feel the need to change it. Anyway, the iterator is used for some things before this method is called. In fact, this method is the one called last, when the rest of the string is data rather then commands.
In any case, I have decided that my change was not needed so I changed back my code. Would still like an answer to the question, though, just for future reference.