[java] How do I remove the non-numeric character from a string in java?