def unqote(text):
    """Strip pair of leading and trailing quotes from text."""
    if text.startswith('"') and text.endswith('"') or text.startswith("'"
        ) and text.endswith("'"):
        text = text[1:-1]
    return text
