 How can I not ignore the trailing newline character? Thanks very much