[utils] str to int