Collate function for special characters