Unnecessary line feeds are mixed in when saving SSHLibrary operation logs

I would like to save log, just like when I using terminal as follow.

Last login: Tue Mar 22 15:16:14 2022 from xx.xx.xx.xx
[root@host1 ~]# echo aaa
aaa
[root@host1 ~]# echo bbb
bbb
[root@host1 ~]#

But unnecessary line feeds are mixed in when testing code as follow.
test case
*** Test Cases ***
test1
Open Connection ${ip} prompt=REGEXP:\[${user}@.*\]#
${login msg} = Login ${user} ${password}
Create File test1.log ${login msg}
Write Bare echo aaa\n
${read str} = Read Until Prompt
Append To File test1.log ${read str}
Write Bare echo bbb\n
${read str} = Read Until Prompt
Append To File test1.log ${read str}
Close All Connections

test1.log
Last login: Tue Mar 22 15:16:14 2022 from xx.xx.xx.xx[CR]
[CR]
[CRLF]
[root@host1 ~]# echo aaa[CR]
[CRLF]
aaa[CR]
[CRLF]
[root@host1 ~]# echo bbb[CR]
[CRLF]
bbb[CR]
[CRLF]
[root@host1 ~]#