removing extraneous text