The Ratscript console does not correctly parse \n into a newline when testing code (it takes it as literal), ie, if run in a tester with an assigned input string of "some\nthing", we correctly end up with three tokens
IDENTIFIER "some" at position 1:0 IDENTIFIER "thing" at position 2:0 ENDOFFILE "" at position 2:5
however if entered into the test console, we end up with
IDENTIFIER "some" at position 1:0 IDENTIFIER "thing" at position 1:6 ENDOFFILE "" at position 1:11
and an unexpected character result on \n.
Is this intended behavior? Probably not?
Troubleshoot and resolve.