add function to get line of text as a string (for conversation routine)