def is_quote_delimited(string):
    """Return True if string is enclosed between single or double quotes."""
    stripped = string.strip()
    return ((stripped.startswith("'") and stripped.endswith("'")) or
            (stripped.startswith('"') and stripped.endswith('"')))