static S dropAfterSlash(S s) { if (s == null) null; int i = s.indexOf('/'); ret i < 0 ? s : rtrim(substring(s, 0, i)); }