formatting and rewrite clean input value