Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > Rebalance-Pack > String (Inline)

ComfyUI Node: String (Inline)

Class Name

StringInline

Category
Rebalance-Pack/foundational
Author
nova452 (Account age: 1390days)
Extension
Rebalance-Pack
Latest Updated
2026-07-30
Github Stars
0.47K

How to Install Rebalance-Pack

Install this extension via the ComfyUI Manager by searching for Rebalance-Pack
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Rebalance-Pack in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

String (Inline) Description

Facilitates dynamic multiline string creation and manipulation through token substitution for AI artists.

String (Inline):

The StringInline node is designed to facilitate the creation and manipulation of multiline strings with dynamic content through token substitution. This node is particularly useful for AI artists who need to generate text with variable components, allowing for the seamless integration of different text elements into a single cohesive string. By using tokens such as {`{text_a}`} and {`{text_b}`}, you can easily replace these placeholders with specific values, enabling the customization of text outputs without manually editing the entire string. This functionality is beneficial for creating templates or prompts where certain parts of the text need to be dynamically adjusted based on input parameters. The StringInline node streamlines this process, making it an essential tool for text manipulation and generation tasks.

String (Inline) Input Parameters:

text

The text parameter is the core input for the StringInline node, where you define the multiline string that may contain tokens for substitution. This parameter allows you to specify the template text, which can include placeholders like {`{text_a}`} and {`{text_b}`}. The default value for this parameter is {`{text_a}`}, and it supports multiline input, enabling you to create complex text structures. The text parameter is crucial as it forms the basis of the output string, with the tokens being replaced by the values provided in the optional parameters.

text_a

The text_a parameter is an optional input that allows you to specify the value that will replace the {`{text_a}`} token in the text parameter. This parameter is essential when you want to dynamically insert specific content into your template string. By providing a value for text_a, every occurrence of the {`{text_a}`} token in the text will be substituted with this value. This parameter does not have a default value, and its input is required if you intend to use the {`{text_a}`} token in your template.

text_b

Similar to text_a, the text_b parameter is an optional input that enables you to define the value that will replace the {`{text_b}`} token in the text parameter. This parameter is useful for adding another layer of customization to your template string, allowing you to substitute the {`{text_b}`} token with a specific value. Like text_a, this parameter does not have a default value, and its input is required if the {`{text_b}`} token is present in your template.

String (Inline) Output Parameters:

STRING

The output parameter STRING represents the final processed string after all token substitutions have been made. This output is a single string where the {`{text_a}`} and {`{text_b}`} tokens in the input text have been replaced with the values provided in the text_a and text_b parameters, respectively. The STRING output is crucial as it delivers the customized text that can be used in various applications, such as generating prompts or creating dynamic content for AI art projects.

String (Inline) Usage Tips:

  • To effectively use the StringInline node, ensure that your template string in the text parameter includes the correct tokens ({`{text_a}`} and {`{text_b}`}) that you intend to replace.
  • When providing values for text_a and text_b, consider the context in which the final string will be used to ensure that the substitutions make sense and enhance the overall output.
  • Utilize the multiline capability of the text parameter to create complex and structured text templates that can be easily customized with different inputs.

String (Inline) Common Errors and Solutions:

Missing token replacement value

  • Explanation: This error occurs when a token ({`{text_a}`} or {`{text_b}`}) is present in the text parameter, but no corresponding value is provided in the text_a or text_b parameters.
  • Solution: Ensure that you provide a value for each token used in the text parameter by setting the text_a and text_b parameters accordingly.

Unintended token in output

  • Explanation: If a token remains in the output string, it indicates that the token was not replaced due to a missing input value.
  • Solution: Double-check that all tokens in the text parameter have corresponding values in the text_a and text_b parameters to ensure complete substitution.

String (Inline) Related Nodes

Go back to the extension to check out more related nodes.
Rebalance-Pack
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.