Improve performance of StringUtil by using StringBuilder.