Helps to use getline correctly