Here’s a structured documentation section with short descriptions, input/output details, and examples (no code snippets) for each function group. This is Forge-ready and can also go into your README:
Download & Install
.oap
Add to Your App
No Extra Configuration
All functions are exposed as Server Actions under the StringHelpers module. Drag and drop into your logic, provide inputs, and use outputs.
StringHelpers
TrimLeft / TrimRight / TrimBothDescription: Remove characters from start, end, or both ends.Input: Text, optional characters to trim.Output: Trimmed text.Example: Input: "##Hello##", TrimBoth with "#" → Output: "Hello"
"##Hello##"
"#"
"Hello"
CollapseSpacesDescription: Replace multiple spaces with a single space.Example: Input: "A B C" → Output: "A B C"
"A B C"
ToTitle / ToLower / ToUpperDescription: Change text case.Example: Input: "hello world" → Output: "Hello World"
"hello world"
"Hello World"
ToggleCaseDescription: Switch uppercase to lowercase and vice versa.Example: Input: "AbC" → Output: "aBc"
"AbC"
"aBc"
Equal / CompareDescription: Compare two strings (case-insensitive by default).Example: Input: "Test", "test" → Output: True
"Test", "test"
True
RegexMatchDescription: Check if text matches a pattern.Example: Input: "abc123", Pattern: \\d+ → Output: True
"abc123"
\\d+
RegexReplaceDescription: Replace pattern matches with text.Example: Input: "abc123", Replace digits with "-" → Output: "abc-"
"-"
"abc-"
RegexExtractAllDescription: Extract all matches as a list.Example: Input: "a1b2c3", Pattern: \\d → Output: ["1","2","3"]
"a1b2c3"
\\d
["1","2","3"]
Base64Encode / Base64DecodeExample: Input: "Hello" → Output: "SGVsbG8="
"SGVsbG8="
UrlEncode / UrlDecodeExample: Input: "a b" → Output: "a%20b"
"a b"
"a%20b"
HtmlEncode / HtmlDecodeExample: Input: "<b>text</b>" → Output: "<b>text</b>"
"<b>text</b>"
"<b>text</b>"
RemoveDiacriticsExample: Input: "Résumé" → Output: "Resume"
"Résumé"
"Resume"
Left / Right / MidExample: Input: "abcdef", Left(3) → Output: "abc"
"abcdef"
"abc"
ReverseExample: Input: "abc" → Output: "cba"
"cba"
RepeatExample: Input: "Hi", Count: 3 → Output: "HiHiHi"
"Hi"
"HiHiHi"
PrefixText / AppendTextExample: Input: "World", Prefix: "Hello " → Output: "Hello World"
"World"
"Hello "
IsNullOrEmpty / IsNumeric / IsAlpha / IsAlphanumericExample: Input: "12345" → Output: True for IsNumeric
"12345"
IsPalindromeExample: Input: "madam" → Output: True
"madam"
Split / JoinExample: Input: "a,b,c", Delimiter: "," → Output: ["a","b","c"]
"a,b,c"
","
["a","b","c"]
PadLeft / PadRightExample: Input: "7", PadLeft(3,'0') → Output: "007"
"7"
"007"
LevenshteinExample: Input: "kitten","sitting" → Output: 3
"kitten","sitting"
3
JaroExample: Input: "MARTHA","MARHTA" → Output: 0.944
"MARTHA","MARHTA"
0.944
GenerateGuidExample: Output: "550e8400-e29b-41d4-a716-446655440000"
"550e8400-e29b-41d4-a716-446655440000"
GenerateRandomStringExample: Length: 8 → Output: "aZ3xT9bQ"
"aZ3xT9bQ"
".pdf"
⚠ Notes