Thanks ....now it works
i was having something like the code below.
i assigend splitContent.Trim() to a string varibale and
used it.....it works fine
string splitContent = splitContentArray[index];
splitContent.Trim();
if (splitContent.Length > 0)
splittedContents.Add(splitContent);