String Essentials - Custom nodes for ComfyUI
Custom nodes for ComfyUI that provide text/string manipulation capabilities. Particularly useful for modifying text from LLM outputs (Ollama, Claude.ai, OpenAI ChatGPT), such as prompts or image-to-text description results.
Features
- Remove or replace text, words, numbers in input strings
- Handle multi-word strings (partial sentences/phrases)
- Case-sensitive/insensitive matching
- Whole string matching option
String Strip Node
Removes specified strings from input text. Each line should contain the string to be searched. The string can contain multiple words. To match individual words/strings place on seperate lines.
Inputs
input_string: The string or text to processstrings_to_remove: List of strings to remove (one per line)match_case: Enable/disable case-sensitive matchingmatch_whole_string: Ensure only exact matches are removedremove_extra_spaces: Clean up extra spaces after removal
String Strip Example Usage:
String Replace Node
Replaces text strings with new strings. Each line should contain a search and replace pair separated by a colon : See example image below.
Inputs
input_string: The string or text to processreplacement_pairs: List of search:replace pairs (one per line)match_case: Enable/disable case-sensitive matchingmatch_whole_string: Ensure only exact matches are replacedremove_extra_spaces: Clean up extra spaces after replacement
String Replace Example Usage:
Installation
-
Navigate to the
custom_nodesdirectory in your ComfyUI installation path. -
Clone the repository:
git clone https://github.com/bradsec/ComfyUI_StringEssentials.git -
Restart ComfyUI or refresh your nodes.
-
Select node from the
utilsmenu.Add Node > utils >String StriporString Replace



