ComfyUI Node
String Strip
A ComfyUI node in utils/StringEssentials with 6 inputs and 1 output.
String Strip
- modified_string
◄input_string—►
◄strings_to_remove►
◄match_casefalse►
◄match_whole_stringtrue►
◄preserve_punctuationtrue►
◄remove_extra_spacestrue►
Categoryutils/StringEssentials
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| input_string | STRING | The string to process | |
| strings_to_remove | STRING | Enter strings to remove (one per line). Can include multiple words or strings on one line like: 'This image is'. This will only match this entire string. | |
| match_case | BOOLEAN | false | When enabled, matching is case-sensitive. |
| match_whole_string | BOOLEAN | true | When enabled, only whole-word matches are removed, not substrings inside other words. |
| preserve_punctuation | BOOLEAN | true | When enabled, punctuation marks adjacent to matched text are preserved |
| remove_extra_spaces | BOOLEAN | true | When enabled, collapses repeated spaces and trims the result after removal. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| modified_string | STRING | — |