def simplify_parenthesis(textline: str) -> str:
    """Remove enclosing parenthesis if available."""
    if textline.startswith("(") and textline.endswith(")"):
        textline = textline[1:-1]
    return textline