Converted string concatenations to string appending, which always has better performance.