ReadInput checks input length