Minor optimization where using the StringBuilder class.