priliminary char equality check