How To Loop Through A String In Java