diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
index 0e19f80516319dd50464312a6e02e278a322c9dc..1a5ae9349f27afcdab7d1597382c75f433504aac 100644
--- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
+++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
@@ -92,6 +92,12 @@ void CommandLineLauncher::DeleteWatcherList()
 bool CommandLineLauncher::Load(const std::string & exp)
 {
   m_Expression = exp;
+  //std::cout<<m_Expression<<std::endl;
+
+  while(m_Expression.find("  ") != std::string::npos)
+    m_Expression.erase(m_Expression.find("  "), 1);
+
+  //std::cout<<m_Expression<<std::endl;
 
   return this->Load();
 }