static S leadingSquareBracketStuff(S s) { if (!startsWith(s, '[')) null; ret substring(s, 1, smartIndexOf(s, 1, ']')); }