Skip to main content

Trim

Remove spaces, or the characters you list, from both ends, the start or the end of a text.

Command in the String toolkit · id ooa.string/trim · 3 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
TextStringYesSource text.
SideStringNobothWhich end to trim.
CharactersStringNoCharacters to remove, e.g. 0 or *-; whitespace when empty.

Outputs​

OutputTypeWhat it is
resultStringTrimmed text.