New Reverse and Format function