from typing import Optional


def optional_empty_str(value: Optional[str]) -> Optional[str]:
    """Parser for empty strs to None."""
    if value is None:
        return None

    if value == "":
        return None

    return value