static S getLeadingSpaces(S s) { ret substring(s, 0, countLeadingSpaces(s)); }