replace

fun replace(token: String, newToken: String)(source)

Since Kotlin

1.1