:Trim string char max -- strip white spaces (or other characters) from the beginning and end of a string :: -- string [in,out] - string variable to be trimmed :: -- char [in,opt] - character to be trimmed, default is space :: -- max [in,opt] - maximum number of characters to be trimmed from the end, default is 32 call:lTrim "%~1" "%~2" call:rTrim "%~1" "%~2" "%~3" EXIT /b