Check for strtoul() correctly