fix query with CAPITAL letters