@dalias Sanitizing away SPC from inputs is one way to resolve word splitting. Arguably little of this code is elegant.