String Manipulation

concat
// Concatenate two strings together
concat(string, string): string
split
// Splits the first string into an array of strings divided by the second delimiter string
split(string, string): Array<string>
repeat
// Repeats the contents of the string `n` times (so `repeat("hello", 1)` returns `"hello"`)
repeat(string, int8): string
repeat(string, int16): string
repeat(string, int32): string
repeat(string, int64): string
template
// Takes a string template and a HashMap of string keys to string values to substitute in
template(string, HashMap<string, string>): string
matches
// Check if the first string matches the regular expression defined by the second string
matches(string, string): bool
index
// Returns the location of the second string within the first string as a Result, or errors
index(string, string): Result<int64>
length
// Returns the length of the string (as a byte array, not UTF codepoints)
length(string): int64
trim
// Removes the whitespace on either end of the string
trim(string): string