Improve string partitioning logic.
Merge pull request #133 from nicksay/string-bisect

Improve string partitioning logic.