Trying to handle numberformatexception