change string comparison method