could do this with regular expression, but slow, and this function is called frequently. My only use case works with removal of all space character whitespace, and I don't expect <TAB>. This uses non-unicode aware matching for speed. This can be changed by setting useBytes to FALSE.
strip(x, pattern = " ", useBytes = TRUE)
is a character vector to strip
is the non-regex of the character to strip, default " "
logical scalar. Unlike gsub, this will default to TRUE here, therefore breaking unicode.
character vector