powered by
trim.space(x, what = c("both", "leading", "trailing", "none"), space.regex = "[:space:]", ...)
both
none
gsub