Nodes/Parametric Studio/PSN String Cleaner
ComfyUI Node

PSN String Cleaner

Cleans and normalizes user input text by applying specified operations: - remove_whitespace: Collapses multiple whitespace characters into a single space and strips leading/trailing whitespace. - lowercase: Converts the text to lowercase. - remove_punctuation: Removes all punctuation characters.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
PSN String Cleaner
    • cleaned_text
    ◄text►
    ◄remove_whitespacetrue►
    ◄lowercasefalse►
    ◄remove_punctuationfalse►
    CategoryParametric/Prompts

    Inputs (4)

    NameTypeDefaultDescription
    textSTRINGThe input text.
    remove_whitespaceBOOLEANtrueRemove whitespace. Default True.
    lowercaseBOOLEANfalseLowercase. Default False.
    remove_punctuationBOOLEANfalseRemove punctuation. Default False.

    Outputs (1)

    NameTypeDescription
    cleaned_textSTRING—