Updated read_line function to take a const reference