str to int values conversion