strip

Basic data handling: StringStrip

Removes leading and trailing characters from the string. This node returns a copy of the string with both leading and trailing characters removed. If chars is provided, it specifies the set of characters to be removed. If chars is not provided, whitespace characters are removed.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (2)

NameTypeRequired
stringSTRINGrequired
charsSTRINGoptional

Outputs (1)

NameType
STRINGSTRING