Input sanity checker (isdigit or not)