diff --git a/monitor.c b/monitor.c
index 5435dc3..7b752a2 100644
--- a/monitor.c
+++ b/monitor.c
@@ -3588,6 +3588,9 @@ static const mon_cmd_t *monitor_parse_command(Monitor *mon,
     if (cmd->sub_table != NULL) {
         p1 = p;
         /* check if user set additional command */
+        while (qemu_isspace(*p1)) {
+            p1++;
+        }
         if (*p1 == '\0') {
             return cmd;
         }
