extend/string: backport #rpartition
Merge remote-tracking branch 'Homebrew/master'