String to int conversion