I used the below mention code to remove extra spaces occur in a document it ran successfully but extra spaces are not rearranged properly.
public static string ConvertWhitespacesToSingleSpaces(string strValue)
{
strValue = Regex.Replace(value, @"\s+", " ");
return strValue;
}
Any one please look into this to solve?
Regards,
Deepakkumar G.