Can we do the parsing in the very beginning (when we save it to the `cardIndex` variable) to avoid the same kind of issue happening in the future?