Use StringBuilder for better performance