minor change to getLine function exercise 1.23
exercise 1.24