See
str.rpartition
.