I don't find particularly to work with exception in order to determine if the string is an integer. Is there really no other way ?