$textTrim
$textTrim
will remove all extra spaces, multiple spaces after one space, and replaces those with one single space.
Usage
$textTrim[text]
Parameters
Field | Type | Description | Required |
---|---|---|---|
text | string | The text to be trimmed. | true |
Example(s)
This will remove any extra spaces of the given text, in this case it would return Imagine a string package.
:
1client.command({2 name: "textTrim",3 code: `4 $textTrim[ Imagine a string package ]5 `6});