remove extraneous text