add strtol check for whole numbers