string.string.trim
Declaration
lua
string.trim(text)
Description
Remove whitespace from both ends.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
text | string | Required | — |
Return Values
| Type | Description |
|---|---|
| string | Trimmed string |
Example
lua
(" hello "):trim()