s <- "hello" # substr<- overwrites characters in place substr(s, 1, 1) <- "J" print(s)
overwrite part of a string