If that is a String, the String class has methods for extracting sub parts of it.
The Integer class has a method to convert a String to an int.