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.
PSN String Cleaner
- cleaned_text
◄text►
◄remove_whitespacetrue►
◄lowercasefalse►
◄remove_punctuationfalse►
CategoryParametric/Prompts
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | The input text. | |
| remove_whitespace | BOOLEAN | true | Remove whitespace. Default True. |
| lowercase | BOOLEAN | false | Lowercase. Default False. |
| remove_punctuation | BOOLEAN | false | Remove punctuation. Default False. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| cleaned_text | STRING | — |