String to int Conversion

I explain the problem in my answer above. Thanks for trying to help anyway.