Trim both leading and trailing whitespaces from string.

trim(x)

Arguments

x

A text string.

Value

Cleaned string.

Examples

trim(" hello ")
#> [1] "hello"