Rewrote the period stripping method

Rewrote the period stripping method for EDI files that contained
multiple POs