As the subject implies, I'm having a bit of trouble parsing a target String for whitespace character replacement. Basically I need to parse the String object for each instance of whitespace and replace it with another character. I can't seem to figure out how to go about doing this. Somethings that I've had in mind were a sentinel search or a for each loop but I'm running into dead ends each way.

Any help would be appreciated.

Thanks in advance.