covering both return and newline