str_trim {stringr} | R Documentation |
Trim whitespace from start and end of string.
str_trim(string)
string |
input character vector |
character vector with leading and trailing whitespace removed
str_trim(" String with trailing and leading white space\t") str_trim("\n\nString with trailing and leading white space\n\n")