String manipulation utilities.
split(s str, delim str) -> [str]: Splitssbydelim.join(parts [str], sep str) -> str: Joinspartswithsep.trim(s str) -> str: Removes leading/trailing whitespace.trim_start(s str) -> str: Removes leading whitespace.trim_end(s str) -> str: Removes trailing whitespace.upper(s str) -> str: Converts to uppercase.lower(s str) -> str: Converts to lowercase.contains(s str, sub str) -> bool: Returns true ifsubis ins.starts_with(s str, prefix str) -> bool: Returns true ifsstarts withprefix.ends_with(s str, suffix str) -> bool: Returns true ifsends withsuffix.replace(s str, old str, new str) -> str: Replaces first occurrence.replace_all(s str, old str, new str) -> str: Replaces all occurrences.count(s str, sub str) -> int: Number of occurrences.index_of(s str, sub str) -> int: Index ofsubor-1.slice(s str, start int, end int) -> str: Returns substring.repeat(s str, n int) -> str: Repeatssntimes.pad_left(s str, width int, char str) -> str: Left pad towidth.pad_right(s str, width int, char str) -> str: Right pad towidth.to_int(s str) -> int | error: Parsessto int.to_float(s str) -> float | error: Parsessto float.from_int(n int) -> str: Converts int to string.from_float(f float) -> str: Converts float to string.chars(s str) -> [str]: List of characters.len(s str) -> int: String length.is_empty(s str) -> bool: Returns true if empty.is_numeric(s str) -> bool: Returns true if all digits.is_alpha(s str) -> bool: Returns true if all letters.format(template str, args [str]) -> str: Replaces{}placeholders with args.
load string
out(string.split("a,b,c", ","))