>>>foreach (KeyValuePair<String, String> kvp in rowValues) >>> { >>> String passedValue = kvp.Value.Trim(); // I would not Trim() here. Make sure the are Trimmed before they go in the dictionary >>> string rowValue = bookingRow[kvp.Key].ToString().Trim(); >> >>> if ( passedValue != rowValue ) >>> { >>> > this.SaveToBookingHistory(booking_id, "M", kvp.Key, rowValue , passedValue, ref messageText, ref statusCode); >>> } >>> }>