sS dropLeadingNewLines(S s) { int i = 0; while true { if (substringAtIs(s, i, "\r\n")) i += 2; else if (substringAtIs(s, i, "\n")) i++; else break; } ret substring(s, i); }