Post-ash residue and metallic contaminants cause short circuits in semiconductor manufacturing, which are mitigated by controlling the chemical selectivity of imidazolidinethione species. This precise surface chemistry prevents damage to sensitive cobalt and copper layers while ensuring complete removal of titanium nitride masks.