Catching NumberFormatException moved