removed  an invalid length check on readLine