My actual fix was
In reply to Re^2: How not to remove trailing empty strings from an array by ambrus in thread How not to remove trailing empty strings from an array by ambrus