static S firstLine(S text) { if (text == null) null; int i = text.indexOf('\n'); ret i >= 0 ? text.substring(0, i) : text; }