Best alternatives to convert String to int efficiently

No, I'm not adding 0, I'm trying to replace the myString[0] i.e.,(H) with 0 so that I'd be able to convert that String to int using toInt(). I'm using the approach which is generally used for array.