Looking at your input and expected output there is a space that has gone missing. If you really want to remove that space you could use LINQs Select
extension method:
var orderElements = order.Split('\'').Select(s => s.Trim()).ToList();
Also the string ends in an '
so you might want to remove empty entries like:
.Split(new char[] { '\'' }, StringSplitOptions.RemoveEmptyEntries)
0
solved Split EDI string on ‘ in c#