Strings.beforeLast
javadoc on Strings.beforeLast
Abstraction from Strings.before and beforeLast: .before(Fn<String, Integer> index)