Text Processor
The string-mangling utility with zero dependencies
- output
Yes, a node that uppercases text. It's about as exciting as it sounds, and it's still occasionally the node that unblocks a workflow - which is the whole job of a good utility pack. Text Processor is one of four tiny nodes in the Candlehead pack, and it has no dependencies at all.
What it is
A text input, a mode dropdown, one string output. Pick a mode - uppercase, lowercase, capitalize, reverse - and the node transforms whatever string you feed it. That's the entire feature set.
How it works
It's a thin wrapper around Python's built-in string methods: text.upper(), text.lower(), text.capitalize(), and text[::-1] for reverse. No LLM, no regex, no hidden state. If you can read Python, you already know exactly what this node does.
The inputs and outputs that matter
text- multiline string, empty by default. Whatever you want transformed.mode- the dropdown, default uppercase.
Output:
output(STRING) - the transformed text. Wire it into a CLIP Text Encode or any other string-consuming node.
Where it actually earns its keep
- lowercase - normalize mixed-case tags before they hit a tag-model prompt on SDXL/Illustrious checkpoints, where case-sloppy pastes measurably degrade results.
- reverse - a genuine trick: reverse a word in the prompt and the model draws it backwards, which is handy for signs and text seen in a mirror.
- uppercase / lowercase - when the text comes from another node - a filename, a batch value, a saved workflow field - and needs normalizing mid-graph without you editing it by hand.
Honestly, most of the time you'd just fix the text yourself. The node pays for itself exactly when the string is produced programmatically and you don't want to babysit it.
The trap
capitalize is Python's capitalize, not title case. It uppercases only the first character of the entire string and lowercases everything after it. the QUICK brown fox becomes The quick brown fox. Feed it a prompt expecting The Quick Brown Fox and you'll be confused. This node will not do title case, full stop.
Installing it
Text Processor ships in the Candlehead-Comfy-Nodez pack - no requirements.txt, no model downloads, pure stdlib:
ComfyUI Manager → Custom Nodes → search "Candlehead" → install → restart.
Or by hand:
cd ComfyUI/custom_nodes
git clone https://github.com/Candlehead/Candlehead-Comfy-Nodez
Restart, then search the menu for "Text Processor" (class name: TextProcessor).
Gotchas
reverseis character-level, not word-level.hello world→dlrow olleh. If you wanted the words flipped, that's a different node.- It's raw Python, which is also the point. Nothing here breaks anything else - safe to install, safe to leave installed, easy to read if you ever want to confirm it.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — | |
| mode | COMBO | uppercase | 4 options: uppercase, lowercase, capitalize, reverse |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| output | STRING | — |