truncate text for posts