Automatic deletion of trailers whitespaces in chapters' content