Validate the input is exhausted