Skip to content

llStringTrim

function ll.StringTrim(Text: string, TrimType: number): string

Outputs 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.

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.