Replace Substring
Creates a string that has non overlapping instances of a substring replaced by a new string.
Examples in
Go
package main
import (
"fmt"
"strings"
)
func main() {
fmt.Println(strings.Replace("oink oink oink", "k", "ky", 2))
fmt.Println(strings.Replace("oink oink oink", "oink", "moo", -1))
}