Java program for traversing strings