C Programming - Handling string input when the program requires an int