fix str to int