String Utilities

11 functions for string manipulation and transformation

split(delimiter)

Split a string into an array

join(separator)

Join array elements into a string

replace(search, replacement)

Replace all occurrences of a substring

regexReplace(pattern, replacement, flags?)

Regex replace with optional flags

trim()

Trim whitespace from both ends

lower()

Convert string to lowercase

upper()

Convert string to uppercase

startsWith(prefix)

Check if string starts with prefix (returns boolean)

endsWith(suffix)

Check if string ends with suffix (returns boolean)

slice(start, end?)

Extract a portion of a string or array

contains(substring)

Check if string contains substring (returns boolean)