Use StringBuffer instead of StringBuilder