Adding updated code of string Comparison