llStringTrim
function ll.StringTrim(Text: string, TrimType: number): stringOutputs a string, eliminating white-space from the start and/or end of the input string Text.
Valid options for TrimType:
STRING_TRIM_HEAD: trim all leading spaces in Text
STRING_TRIM_TAIL: trim all trailing spaces in Text
STRING_TRIM: trim all leading and trailing spaces in Text.
Parameters
-
Text(string) - String to trim
-
TrimType(number) - STRING_TRIM_HEAD, STRING_TRIM_TAIL, or STRING_TRIM.
Examples
Section titled “Examples”Add example usage here showing SLua/Luau syntax with ll.StringTrim().
Add additional notes, caveats, or tips specific to using this function in SLua/Luau.
See Also
Section titled “See Also”- Related functions can be linked here
- LSL equivalent: llStringTrim