trim paragraph contents