how to extract values from string in java