Replace multiline with empty string not space

Ensure we don't introduce unexpected spaces when processing multiline in Dockerfiles