Added String#beforeLast(needle) and String#afterLast(needle)