This function is an Advanced Text function in the UBot Extended Library. This function will trim and replace multiple spaces with a single space.
Text to Clean: String being cleaned. Can also be a variable, list item, table cell or a function.
alert($clean text("I Love UBot Studio"))
Running the alert command will produce the result, which is the sentence "I Love UBot Studio" with all unnecessary spaces properly trimmed.