scala> val x = "scala is awesome" x: java.lang.String = scala is awesome scala> x.reverse res1: String = emosewa si alacs