def string2bool(allegedstring):
    """
    Tries to return a boolean from a string input if possible,
    else it just returns the original item, allegedly a string.
    """
    if allegedstring.lower().startswith('t'):
        return True
    elif allegedstring.lower().startswith('f'):
        return False
    elif allegedstring == "1":
        return True
    elif allegedstring == "0":
        return False
    else:
        return allegedstring