fixing base-3-string.scala