The function cleanup_spaces() takes a character vector and input and turns
any uninterrupted stretch of whitespace characters into one single space character.
Moreover, it can also remove leading whitespace and trailing whitespace.
The function cleanup_spaces() takes a character vector and input and turns
any uninterrupted stretch of whitespace characters into one single space character.
Moreover, it can also remove leading whitespace and trailing whitespace.