change str to int