modified the truncate words for index page.