string

string.string.trim

Declaration
lua
string.trim(text)
Description
Remove whitespace from both ends.
Parameters
NameTypeRequiredDefaultDescription
textstringRequired—
Return Values
TypeDescription
stringTrimmed string
Example
lua
("  hello  "):trim()