Added IgnoreTrailingSeparatorChar property to fix issue of trailing separator character at the end of the line