changed quote checking to be case insentive