str_length()

str_length(c("a", "R for data science", NA))
## [1]  1 18 NA