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