def str2bool(v):
    """
    Converts a string to boolean

    Args:
        v (str) : string to be percieved as true or false
    Returns:
        (bool) : True or false based on string
    """
    return v.lower() in ("yes", "True", "true", "t", "1")