refactor pp_stringify and pp_and