Refactored newlines in compare.character