Changed both ccType checks into regex checks.