Implement str.partition and add tests for it.
Implement str.rpartition and add tests for it.
str.(r)partition: factor our duplicate code.

Both str.partition and str.rpartition now both search left to right.