def maybe_remove_parens(s: str) -> str:
    """Remove parentheses from around a string if it has them."""
    if (len(s) > 1) and (s[0] == "(") and (s[-1] == ")"):
        return s[1:-1]

    return s