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
    """

    # Don't strip if the string is too short
    if len(s) < 2:
        return s

    # Get first and last character
    start_char, end_char = s[0], s[-1]

    # Only strip quotes if it starts and ends with the same quote type
    if start_char == end_char and start_char in {'"', "'"}:
        return s.strip(start_char)
    else:
        return s