Modified _check_quote() to support queries using the "*:*" notation