Most Java programmers have used the java.util.StringTokenizer class at some time or another. It is a handy class that basically tokenizes (breaks) the input string based on a separator, and supplies ...
You should be using the tokenize to actually parse the sentences. If you tokenize on spaces then you can put spaces in where needed (between words) and not have to worry about 'removing' them.