Further refine the output of ToString.
diff --git a/src/main/java/org/apache/activemq/nms/openwire/tool/commands/CommandClassGenerator.java b/src/main/java/org/apache/activemq/nms/openwire/tool/commands/CommandClassGenerator.java
index a768d95..22bd357 100644
--- a/src/main/java/org/apache/activemq/nms/openwire/tool/commands/CommandClassGenerator.java
+++ b/src/main/java/org/apache/activemq/nms/openwire/tool/commands/CommandClassGenerator.java
@@ -210,17 +210,24 @@
         out.println("            return GetType().Name + \"[ \" + ");
 
         if( getBaseClassName().equals( "BaseCommand" ) ) {
-            out.println("                \"commandId = \" + this.CommandId + \" \" + " );
-            out.println("                \"responseRequired = \" + this.ResponseRequired + \" \" + " );
+            out.println("                \"commandId = \" + this.CommandId + \", \" + " );
+            out.println("                \"responseRequired = \" + this.ResponseRequired + \", \" + " );
         }
 
+        int size = getProperties().size();
+        int count = 0;
+
         for( JProperty property : getProperties() ) {
             String name = property.getSimpleName();
 
-            out.println("                \"" + name + " = \" + " + name + " + \" \" + " );
+            out.print("                \"" + name + " = \" + " + name + " + ");
+
+            if( ++count != size ) {
+                out.println("\", \" + ");
+            }
         }
 
-        out.println("                \"]\";");
+        out.println("\" ]\";");
     }
 
     protected void generateCloneBody( PrintWriter out ) {