Added code for sets and strings