renamed readString to readLine