static PairS splitAtLastSlash(S s) { int i = lastIndexOf(s, '/'); ret i < 0 ? null : pair(substring(s, 0, i), substring(s, i+1)); }