def unquoted(string: str) ->str:
    """Return the given string, unquoted.

    >>> unquoted('a')
    'a'
    >>> unquoted('"a"')
    'a'
    >>> unquoted('"a')
    '"a'

    """
    if string[0] == '"' and string[-1] == '"':
        return string[1:-1]
    return string
