diff --git a/src/java/org/apache/cassandra/cli/CliMain.java b/src/java/org/apache/cassandra/cli/CliMain.java
index <HASH>..<HASH> 100644
--- a/src/java/org/apache/cassandra/cli/CliMain.java
+++ b/src/java/org/apache/cassandra/cli/CliMain.java
@@ -367,6 +367,7 @@ public class CliMain
             if (line.isEmpty())
                 continue;
 
+            line = line.trim();
             currentStatement += line;
 
             if (line.endsWith(";"))
trim cli input to avoid confusing parser
patch by Pavel Yaskevich; reviewed by mdennis for CASSANDRA-<I>

git-svn-id: <URL>