All community nodes
String Cleaner icon

String Cleaner

v1.0.0

Trim, collapse spaces, change case, and strip characters from selected string columns.

Utilities Runs locally No flagged operations
String Cleaner screenshot 1

Clean Text

Apply a set of string-cleaning operations to one or more text columns, in place.

What it does

Pick the columns you want to clean and the operations to run. Every selected operation is applied to every selected column, and the result overwrites the original column — no new columns are added. Select no columns or no operations and the table passes through unchanged.

The operations always run in this fixed order, no matter the order you tick them:

  1. Remove punctuation — strips anything that isn’t a letter, digit, underscore, or whitespace ([^\w\s]).
  2. Remove digits — strips 09.
  3. Whitespace — either Remove all whitespace (drops every space, tab, and newline) or Collapse spaces (runs of whitespace become a single space). If both are selected, remove all wins.
  4. Trim — removes leading and trailing whitespace.
  5. Case — lowercase, UPPERCASE, or Title Case. If more than one is selected, the last in this list wins: Title Case > UPPERCASE > lowercase.

Because the steps chain in this order, they compose. For example, selecting Remove punctuation + Collapse spaces + Trim + Title Case turns " hello, WORLD!! " into "Hello World".

Inputs

A single table containing the text column(s) you want to clean. Point the Columns setting at string columns.

Settings

Columns — the columns to clean. Each chosen operation is applied to every one of these, overwriting it in place.

Operations — one or more of:

OperationEffect" Hi, there! 42 "
Remove punctuationRemoves non-word, non-space characters; keeps letters, digits, underscores, spaces" Hi there 42 "
Remove digitsRemoves 09" Hi, there! "
Remove all whitespaceRemoves every space, tab, and newline"Hi,there!42"
Collapse spacesCollapses runs of whitespace to one space" Hi, there! 42 "
TrimStrips leading/trailing whitespace"Hi, there! 42"
lowercaseLowercases" hi, there! 42 "
UPPERCASEUppercases" HI, THERE! 42 "
Title CaseTitle-cases each word" Hi, There! 42 "

Notes

  • Operations overwrite the selected columns; there is no separate output column.
  • The order you tick operations doesn’t matter — the pipeline order above is fixed.
  • Remove all whitespace and Collapse spaces are mutually exclusive; if both are selected, remove all is applied and collapse is ignored.
  • Selecting more than one case option resolves to the last applied (Title Case beats UPPERCASE beats lowercase).