Fixed card.py to do more input sanitation.