:trimSpaces varref -- trims spaces around string variable :: -- varref [in,out] - variable to be trimmed call call:trimSpaces2 %~1 %%%~1%% EXIT /b