In a here-string, the blank line are removed.The end of line (LF) in a here-string, is not equal to System.Environment.NewLine(CR+LF).
Have you seen this problem before in this product?