@main def main(): Unit = val s = "one two two" // replace swaps every literal match println(s.replace("two", "2"))
swap every occurrence