Change method of string comparison