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