[java] Get int from String, also containing letters, in Java