Identifying Ions in a Chemical Formula