Convert query to lowercase