ComfyUI Node

String Strip

A ComfyUI node in utils/StringEssentials with 6 inputs and 1 output.

By bradsec·Created 2 years ago·Updated about a month ago· 35
String Strip
    • modified_string
    input_string
    strings_to_remove
    match_casefalse
    match_whole_stringtrue
    preserve_punctuationtrue
    remove_extra_spacestrue
    Categoryutils/StringEssentials

    Inputs (6)

    NameTypeDefaultDescription
    input_stringSTRINGThe string to process
    strings_to_removeSTRINGEnter 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_caseBOOLEANfalseWhen enabled, matching is case-sensitive.
    match_whole_stringBOOLEANtrueWhen enabled, only whole-word matches are removed, not substrings inside other words.
    preserve_punctuationBOOLEANtrueWhen enabled, punctuation marks adjacent to matched text are preserved
    remove_extra_spacesBOOLEANtrueWhen enabled, collapses repeated spaces and trims the result after removal.

    Outputs (1)

    NameTypeDescription
    modified_stringSTRING