Added str to int conversion