Add try catch for non-digit input