Refactored compare.character again