Implement str.partition and add tests for it.
Implement str.rpartition and add tests for it.