def sfbool(string):
    """ Parse a string into a boolean value

    The string "true" regradless of case  parses to True.
    Everything else parses to False.

    If anything other than a string is passed, an
    exception (ValueError) is raised.

    """
    return string.lower() == 'true'