remove trailing ' '
diff --git a/ebtables-save b/ebtables-save
index 90f62ef..49d733b 100644
--- a/ebtables-save
+++ b/ebtables-save
@@ -37,6 +37,8 @@
         }
         if ($cnt eq "--Lc") {
             $line =~ s/, pcnt = (.*) -- bcnt = (.*)/-c $1 $2/;
+        } else {
+            $line =~ s/ $//;
         }
         $rules = $rules . "-A $chain $line\n";
     }