Replaces the first occurrence of a substring.
1 2
var result string = strings.replace("hello world", "world", "there") printf("%s\n", result) // hello there