s <- "programming" # substr(x, start, stop): 1-indexed, inclusive print(substr(s, 1, 4))
extract a substring