Create `string_replace` function

This function replaces contents on strings.