@TRIMALL[string] :  Returns the string with the leading and trailing white space (space and tab characters), and any extra internal white space removed.

 

Example:

 

echo %@trimall[  this is a           test                   string       ]

this is a test string