Data Modifiers
Modify Text
Overview:
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.
Inputs & Outputs
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. |
Use Cases
Consider how this block can enhance your text processing tasks:
- To Lowercase: When managing user accounts by converting email addresses uniformly—ensuring consistency across databases.
- To Uppercase: In a situation where you need promotional banners or key terms accentuated—this feature makes certain items more noticeable.
- To Propercase: Useful while preparing a formal list of names; it ensures that titles and names are displayed neatly with appropriate capitalization.
- Trim Spaces: An effective first step in cleaning up user-generated content or form inputs where spacing errors may occur frequently.
- Truncate: Ideal for summarizing lengthy descriptions into bite-sized catchphrases—a perfect fit for social media posts or brief reports.
In summary, whenever there’s a need to manipulate text formats quickly and efficiently, the Modify Text
block serves as an invaluable resource!
Was this page helpful?