Tool

Trim Spaces

Text

Remove whitespace characters from the start, end, or all text

Docs for v2.1.18, the latest version.

ID

tool-text-trim-spaces

Group

Text

Plugin

Tool

Keywords

trim
cleanup
text

Trim Spaces

Text

4 inputs, 1 output

Ports

Inputs

4

What the node takes in, from wires or typed values.

Text

String

Text to trim

Start

Boolean

Trim spaces at start

End

Boolean

Trim spaces at end

All

Boolean

Trim spaces in all text

Outputs

1

What the node gives out, to wire into other nodes.

Trimmed

String

Trimmed text

Creation method#

There are two options for creating a Trim Spaces node.#

  • The first way to create a Trim Spaces node using the search list, which is opened by double left-clicking in the workspace. You can write the name of the node you need, or words associated with this node.
    • textDist , textLeven
  • The second way is to select a Trim Spaces node from the menu that opens from the top left.
    • Menu > Tool > Text > Trim Spaces

Steps#

  • Create a Trim Spaces node.
  • Connect the text to the first port to remove whitespace characters from the beginning, end, or all of the text.
  • Connect the optional boolean value for trim spaces at the start to the second port.
  • Connect the optional boolean value for trim spaces at the end to the third port.
  • Connect the optional boolean value for trim spaces at all text to the fourth port.

After creating a node, to the first port, connect the text to remove whitespace characters from the beginning, end, or all of the text. Connect the optional boolean value for trim spaces in the text at the start to the second port and at the end to the third port. Connect the optional boolean value for trim spaces at all text to the fourth port. On the output port, we will get the result of the text trimmed.

See also#

Characters
Text Join
Concatenate
Text Case
Match Text

History

First documented in v2.1.18

Oct 20, 2026

Versions before it were published before changes were recorded.