Bug fix: Handle new line characters properly.