implemented issue #3: please add Scala's mkString function