Corrected use of the getline function.