Trim the output on stdout