static bool endsWithNewLine(S s) { ret endsWith(s, "\n"); }