'Convert/check value type.'

def _convert_string_type(self, value, title):

    if (type(value) is str):
        return value
    raise AssertionError('{0}    must    be    of    type    str    (got    {1})'.format(title, repr(value)))
