remove extra whitespace at body end