rstrip for outputs