Remove trailing text.