Changed all str += to StringBuilder.append()