write out characters in sets