diff --git a/Control/CxxUtils/Root/StringUtils.cxx b/Control/CxxUtils/Root/StringUtils.cxx
index d23fec7f904ccfa3f6a04ccd75500804082a5e6b..fc8f1600fe94f25c178ae0a62a4517186e62dead 100644
--- a/Control/CxxUtils/Root/StringUtils.cxx
+++ b/Control/CxxUtils/Root/StringUtils.cxx
@@ -705,7 +705,7 @@ namespace CxxUtils {
 	  case '$':
 	    {
 	      // find the end of the math block
-	      size_t endpos = latex.find("$",nextpos+1);
+	      size_t endpos = latex.find('$',nextpos+1);
 	      if(endpos == std::string::npos){
 		// it's unterminated, break
 		retval += latex.substr(pos);