str --> int