Do the /n characters print on the output? That would mean that they are ordinary characters and not the escaped newline character. The escape character is \