When appending to a string in a loop, using a StringBuilder should in general yield better performance.