def unquote(s: str) ->str:
    """ Remove starting and ending quotes, only if quoted on both sides

    :param s: String to strip leading/trailing quotes from
    """
    if len(s) < 2:
        return s
    start_char, end_char = s[0], s[-1]
    if start_char == end_char and start_char in {'"', "'"}:
        return s.strip(start_char)
    else:
        return s
