"/r" is added to the end of the string value I read via Ethernet

The string value I read on Ethernet is “test\r”. It adds \r at the end. But when I show the value with the Popup function, \r does not appear. But when I want to compare the value “test” in the function, it says it is not equal.