get rid of extraneous text