def dequote(string: str) -> str:
    """ Return string by removing surrounding double or single quotes. """

    if (string[0] == string[-1]) and string.startswith(('\'', '"')):
        return string[1:-1]

    return string