Correctly parse scatter arguments
Do not chop off trailing newline more than once