Adding updating code of string comparison