Catch NumberFormatException specifically.