Can you explain why we need to handle the '\n' case separately?