trim output for OS