'Why is qStringList.indexof() is not functioning as expected?

I have read the following into a qStringList variable from a .csv file This printout is from the debugger screen in QTcreator. The [17] is the qstringlist index according to the debugger. See the code snippet following. When I request the indexof("Calcium") the function never finds Calcium. It never finds any of the "keys".
[17] "Calcium, Ca,269,mg,\r\n" QString

case CALCIUM:     // =  21,
 {
     if(strlist.indexOf("Calcium") == -1)
     {
          reply = -999;
     }else{
          reply = strlist.indexOf("Calcium");
     }


     break;
 }


   
        


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source