Change from String to StringBuffer to optimize the possible performance issue.