Addition of string utilities for the Python 2 bindings.