String Connector


String Connector

The String Connector provides a comprehensive set of string manipulation operations for concatenation, splitting, transformation, and generation.


Operations


concatenate

Joins an array of strings together with an optional separator.

Parameters

ParameterTypeRequiredDefaultDescription
stringsstring[]No[]The array of strings to concatenate
separatorstringNo""The separator to insert between strings

Examples

// Basic concatenation
{ "strings": ["Hello", "World"] }

// Output
{ "result": "HelloWorld" }
// With separator
{ "strings": ["Hello", "World"], "separator": " " }

// Output
{ "result": "Hello World" }
// With custom separator
{ "strings": ["apple", "banana", "cherry"], "separator": ", " }

// Output
{ "result": "apple, banana, cherry" }

split

Splits a string into an array of substrings based on a delimiter.

Parameters

ParameterTypeRequiredDefaultDescription
textstringNo""The string to split
delimiterstringNo""The delimiter to split on

Examples

// Split by space
{ "text": "Hello World", "delimiter": " " }

// Output
{ "result": ["Hello", "World"] }
// Split by comma
{ "text": "apple,banana,cherry", "delimiter": "," }

// Output
{ "result": ["apple", "banana", "cherry"] }
// Split into characters (empty delimiter)
{ "text": "Hello", "delimiter": "" }

// Output
{ "result": ["H", "e", "l", "l", "o"] }

substring

Extracts a portion of a string between specified indices.

Parameters

ParameterTypeRequiredDefaultDescription
textstringNo""The source string
startnumberNo0The starting index (zero-based)
endnumberNoEnd of stringThe ending index (exclusive)

Examples

// Extract from start index to end
{ "text": "Hello World", "start": 6 }

// Output
{ "result": "World" }
// Extract specific range
{ "text": "Hello World", "start": 0, "end": 5 }

// Output
{ "result": "Hello" }
// Extract middle portion
{ "text": "abcdefgh", "start": 2, "end": 6 }

// Output
{ "result": "cdef" }

trim

Removes leading and trailing whitespace from a string.

Parameters

ParameterTypeRequiredDefaultDescription
valuestringNo""The string to trim

Examples

// Trim whitespace
{ "value": "  Hello World  " }

// Output
{ "result": "Hello World" }
// Trim tabs and newlines
{ "value": "\n\t  Hello  \t\n" }

// Output
{ "result": "Hello" }

toLowerCase

Converts a string to lowercase.

Parameters

ParameterTypeRequiredDefaultDescription
valuestringNo""The string to convert

Examples

// Convert to lowercase
{ "value": "Hello World" }

// Output
{ "result": "hello world" }
// Mixed case input
{ "value": "HELLO world 123" }

// Output
{ "result": "hello world 123" }

toUpperCase

Converts a string to uppercase.

Parameters

ParameterTypeRequiredDefaultDescription
valuestringNo""The string to convert

Examples

// Convert to uppercase
{ "value": "Hello World" }

// Output
{ "result": "HELLO WORLD" }
// Mixed case input
{ "value": "hello WORLD 123" }

// Output
{ "result": "HELLO WORLD 123" }

uuid

Generates a random UUID (Universally Unique Identifier) v4.

Parameters

This operation takes no parameters.

Examples

// Generate UUID
{}

// Output
{ "result": "550e8400-e29b-41d4-a716-446655440000" }

Note: Each invocation generates a new random UUID. The example output above is illustrative; actual output will vary.