Drop leading, trailing and repeated spaces in character strings
cleanSpaces(x, double = TRUE, lead = TRUE, trail = TRUE)A vector of class character
A vector of character strings to modify
Replace any number of consecutive blank spaces by a single blank. Default is TRUE.
Drop spaces before first non-empty character. Default is TRUE.
Drop spaces after last non-empty character. Default is TRUE.