try the following (it's something i had to do with my chat client/server)..
put CR & "marelina:" & line 1 of shell("pwd") & ">" into var1
that way you don't have to check for CR, CRLF, or LF.. (note: this works for me in my code, but can't test shell() features do to lack of *nix)