ComfyUI > Nodes > ComfyUI-Prompt-Wildcards > textconcatenate_v2

ComfyUI Node: textconcatenate_v2

Class Name

textconcatenate_v2

Category
utils/Prompt-Wildcards
Author
Makki_Shizu (Account age: 976days)
Extension
ComfyUI-Prompt-Wildcards
Latest Updated
2025-08-16
Github Stars
0.02K

How to Install ComfyUI-Prompt-Wildcards

Install this extension via the ComfyUI Manager by searching for ComfyUI-Prompt-Wildcards
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Prompt-Wildcards 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

textconcatenate_v2 Description

Efficiently merges text inputs into a single string with customizable delimiters and cleanup options.

textconcatenate_v2:

The textconcatenate_v2 node is designed to efficiently merge multiple text inputs into a single cohesive string. This node is particularly useful for AI artists and designers who need to combine various text elements, such as prompts or descriptions, into a unified format. It offers the flexibility to customize the concatenation process by allowing the use of delimiters, and it provides options to clean up the text by removing unnecessary whitespace and replacing underscores with spaces. This ensures that the final output is not only well-structured but also aesthetically pleasing and ready for further use in creative projects.

textconcatenate_v2 Input Parameters:

delimiter

The delimiter parameter specifies the character or string used to separate each text input in the final concatenated output. By default, it is set to ", ", which means each text will be separated by a comma followed by a space. This parameter allows you to customize how the texts are joined, whether you prefer a simple space, a newline, or any other character. Adjusting the delimiter can significantly impact the readability and format of the resulting text.

clean_whitespace

The clean_whitespace parameter is a boolean option that, when enabled, removes leading and trailing whitespace from each text input before concatenation. This ensures that the final output is tidy and free from unnecessary spaces that could disrupt the flow of the text. By default, this option is set to True, promoting a cleaner and more professional appearance in the concatenated result.

replace_underscore

The replace_underscore parameter is another boolean option that, when enabled, replaces underscores (_) in the text inputs with spaces. This is particularly useful for improving the readability of text that may have been formatted with underscores instead of spaces. By default, this option is set to True, ensuring that the final text is more natural and easier to read.

textconcatenate_v2 Output Parameters:

text

The text output parameter represents the final concatenated string resulting from the combination of all provided text inputs, processed according to the specified parameters. This output is crucial as it forms the basis for further text-based operations or presentations, ensuring that all individual text elements are seamlessly integrated into a single, coherent string.

textconcatenate_v2 Usage Tips:

  • To achieve a clean and professional output, ensure that clean_whitespace is enabled, especially when dealing with user-generated content that might have inconsistent spacing.
  • Use the replace_underscore option to automatically convert underscores to spaces, which can be particularly helpful when working with text data that uses underscores for separation.
  • Experiment with different delimiter settings to find the best format for your specific use case, such as using a newline character for list-like outputs.

textconcatenate_v2 Common Errors and Solutions:

Missing Text Inputs

  • Explanation: If no text inputs are provided, the node will not be able to produce a meaningful output.
  • Solution: Ensure that all necessary text inputs are supplied to the node before execution.

Invalid Delimiter

  • Explanation: Using an invalid or unsupported delimiter might lead to unexpected results or errors.
  • Solution: Verify that the delimiter is a valid string and adjust it according to the desired output format.

Excessive Whitespace

  • Explanation: If clean_whitespace is disabled, the output may contain unwanted spaces.
  • Solution: Enable clean_whitespace to automatically trim unnecessary spaces from the text inputs.

textconcatenate_v2 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Prompt-Wildcards
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.