Strip stdout and stderr.