Use `string` instead as `str` is a type:

    >>> str
    <type 'str'>