trim output of command before parsing it.