isRank() and isSuit() in cardtools