Tool

Text

Trim Spaces

Trim Spaces

Text

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

Docs for v4.0.1, the latest version.

ID

tool-text-trim-spaces

Group

Text

Plugin

Tool

Keywords

trim
cleanup
text
1 input, 1 output, 3 config ports

Ports

Inputs

1

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

Text

String

Text to trim

Outputs

1

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

Trimmed

String

Trimmed text

Config

3

Settings on the node itself, changed in its panel.

Start

Boolean

Default false

Trim spaces at start

End

Boolean

Default false

Trim spaces at end

All

Boolean

Default false

Trim spaces in all 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

Changed in v3.0.0

Nov 3, 2026

input start: removed
input end: removed
input all: removed
config start: added
config end: added
config all: added

First documented in v2.1.18

Oct 20, 2026

Versions before it were published before changes were recorded.