Code cleanup and use StringBuilder to both simplify the code and make it more efficient.