trim output from bufferIO to avoid blank line aver output