Not sure, but isn't `are_valid_char_classes` already checking if both are uppercase or if both are lowercase?