>>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); >> } >> }I think they actually trimmed in the method that populates dictionary, I'll double check.