Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function

trim — strip leading and trailing whitespace

Synopsis

trim(s: string) -> string

Description

The trim function strips all leading and trailing whitespace from string argument s and returns the result.

Examples


# spq
values trim(this)
# input
" = SuperDB = "
# expected output
"= SuperDB ="