changed comparator method and comparison string