change query to check string contains character