strip subprocess output