Ino String Strip Simple
Bulk-delete the characters that break your filenames
- string
Some characters are just noise. Windows filenames choke on : and ", prompts come back from the wild full of stray brackets, and you want them gone everywhere at once, not one at a time. Ino String Strip Simple is the delete-by-character-class node: give it a set of characters and it removes every single occurrence of them from a string. No regex, no "only at the edges" semantics - just a wholesale sweep.
It ships in the ComfyUI Ino Nodes pack (nobandegani/ComfyUI-InoNodes).
Inputs and output
input_string- the text to clean.strip_string- the characters to remove. The default is'[]{}()-_+=, which is a sensible noise set: quotes, braces, parentheses, dashes, underscores, equals. Notice it includes the'character, which is why the field wraps its default in double quotes.
The single string output is your cleaned text.
Under the hood it builds a translation table and deletes every char in strip_string from the whole string - so if - is in the list, every dash goes, including the ones you might have wanted in the middle of words. That's the design: this is a hammer for character classes, not a scalpel for positions.
Where it fits
Filename sanitizing is the star use case. Run a model ID or a generated title through this before it hits Ino Save Images' prefix or Ino Save Text's filename, and you sidestep the classic "saved a file with a character Windows will not accept" headache. It's also a pre-cleaner: strip brackets and quotes from scraped prompt text before feeding it downstream.
Two siblings worth knowing so you grab the right tool:
- Ino String Trim strips whitespace from the edges only.
- Ino String Replace swaps one exact substring for another.
Strip Simple is the middle ground - positional whitespace is Trim's job, substring logic is Replace's, and "nuke this character everywhere" is Strip Simple's.
Install
# ComfyUI Manager: search "ComfyUI Ino Nodes", install, restart
# or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/nobandegani/ComfyUI-InoNodes.git
cd ComfyUI-InoNodes
pip install -r requirements.txt
Restart ComfyUI after. No models to download; requirements.txt brings in the pack's one core dependency, inopyutils. The pack targets ComfyUI's V3 schema, so keep ComfyUI at v0.18.1+, and ignore the README's cd comfyui_ino_nodes typo - the cloned folder is ComfyUI-InoNodes.
The gotcha is the same one that makes it powerful: it deletes all occurrences, with no count or position control. If you feed it a strip_string with a letter you actually want, that letter disappears from the whole string. When a run "loses" characters unexpectedly, that's the first thing to check - and the fix is usually one character in strip_string.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| input_string | STRING | Test {String} | — |
| strip_string | STRING | '[]{}()-_+= | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| string | STRING | — |