StringMethods truncateHtml method added