Menu
Open source

trim_space

trim_space removes any whitespace characters from the start and end of a string.

Examples

alloy
> trim_space("  hello\n\n")
"hello"