Check for garbage at end of input