Modified "drop data" logic for case-insensitive searches