scala get set of chars from string code example Example: scala get set of chars from string string.toStream.toSet