unique characters scala version