| is a command separator, normal that it should be interpreted as such when it's spaced out that way. also mirc strips consecutive spaces when you use them in commands
you can solve both of these problems by changing each space to a hardspace ($chr(160)), or if that's not feasible solution you can insert invisible characters (such as control codes) in between every consecutive space. there's also saturn's spaces.dll which would require a bit of a re-write, each line would need to be turned into $+() with $str($chr(32),N) inside etc.