1.2.3.4.
set str= 15 Leading spaces to truncate echo."%str%" for /f "tokens=* delims= " %%a in ("%str%") do set str=%%a echo."%str%"
" 15 Leading spaces to truncate" "15 Leading spaces to truncate"