This syntax works ok for using like with collection :
Set setAccNames = new Set(); setAccNames.add(\'ABC\'); setAccNames.add(\'XYZ