See str.partition.