def str_(key: str, **kwargs) -> str:
    """Get key=value from kwargs and return value as string"""
    if value := kwargs.get(key) or "":
        if not isinstance(value, str):
            raise ValueError(f"invalid {key}={value}")
    return value