Changing string comparison method