def cleanup_dict(inp: dict) ->dict:
    """Remove empty values from a dict
    """
    r = {}
    for k, v in inp.items():
        if isinstance(v, str):
            v = v.strip()
        if v not in (None, ''):
            r[k] = v
    return r
