HTMLWIDGETS-13 using StringUtils instead