def validate_non_empty_string(value, msg=_L("Required field")):
    # strip whitespace characters
    return validator.StringValidator(value, strip=True).not_empty(_(msg)).to_string()
rewrite return header dict for HPKP
dataset/ETHPy150Open Net-ng/kansha/kansha/validator.py/validate_non_empty_string--crossover with--dataset/ETHPy150Open twaldear/flask-secure-headers/flask_secure_headers/headers.py/HPKP.create_header