Removing extraneous text