turn str into int