Case-insensitive search unless query contains uppercase