messing around with parsing in Java