parse string to int