Java String tokenizer and reverser