s could be None (no output) and we don't want to print a new line for no reason.