comparator now compares whole words and not just the first letter