def str2bool(v):
    """ Checks to see if v is a string representing True

    Parameters:
        v: a string representing a boolean value
    Returns:
        True or False
    """
    if v:
        return v.lower() in ("yes", "true", "t", "1")
    return False