Ignore trailing newline from standard in