Skip to content

$textTrim

$textTrim will remove all extra spaces, multiple spaces after one space, and replaces those with one single space.

Usage

$textTrim[text]

Parameters

FieldTypeDescriptionRequired
textstringThe 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.:

1
client.command({
2
name: "textTrim",
3
code: `
4
$textTrim[ Imagine a string package ]
5
`
6
});