protected string Unquote(string value)
{
if (value == null) throw new ArgumentNullException("value");
value = value.Trim();
if (value.StartsWith("\"") && value.EndsWith("\""))
{
if (value.Length == 2) return string.Empty;
return value.Substring(1, value.Length - 2); //remove quotes
}
return value;
}