Fixed the way we performed character comparisons