The Modify Text
block is designed to standardize textual data according to specific formatting conditions. This block provides functionality for transforming strings by converting them to lowercase or uppercase, capitalizing each word, trimming extra spaces, and truncating the string based on a defined number of tokens.
I/O | Feature | Type | Simple Explanation |
---|---|---|---|
input | value | string | The string that you want to format. |
input | formatter | string | Specifies the formatting action to apply. Options include: To Lowercase, To Uppercase, To Propercase, Trim Spaces, Truncate. |
input | max_num_tokens (required for Truncate) | number | The maximum number of tokens (words or characters) allowed if using the “Truncate” formatter. |
output | formatted_value | string | The resulting string after applying the specified formatting operation. |
Consider how this block can enhance your text processing tasks:
In summary, whenever there’s a need to manipulate text formats quickly and efficiently, the Modify Text
block serves as an invaluable resource!