diff --git a/Modules/Applications/AppMathParser/app/otbBandMath.cxx b/Modules/Applications/AppMathParser/app/otbBandMath.cxx
index d62bd2eefdd074b9983fa562664cfb3c784430b6..38edf77197af15a37c5638cc33d7de906616ba2a 100644
--- a/Modules/Applications/AppMathParser/app/otbBandMath.cxx
+++ b/Modules/Applications/AppMathParser/app/otbBandMath.cxx
@@ -127,7 +127,7 @@ private:
       "apTvUtBandMathOutput.tif"
     );
     SetDocExampleParameterValue(
-      "exp", "'cos( im1b1 ) > cos( im2b1 ) ? im3b1 : im3b2'"
+      "exp", "\"cos( im1b1 ) > cos( im2b1 ) ? im3b1 : im3b2\""
     );
 
     SetOfficialDocLink();
diff --git a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx
index be5f92421b9cb8989defb2b018bea9dc84313444..bc8e637b439c853caf65811905376ed8db56cdd7 100644
--- a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx
+++ b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx
@@ -238,7 +238,7 @@ private:
     SetDocExampleParameterValue( "out", "apTvUtBandMathOutput.tif");
     SetDocExampleParameterValue(
       "exp",
-      "'cos( im1b1 ) + im2b1 * im3b1 - im3b2 + ndvi( im3b3, im3b4 )'"
+      "\"cos( im1b1 ) + im2b1 * im3b1 - im3b2 + ndvi( im3b3, im3b4 )\""
     );
 
     SetOfficialDocLink();