ros_command different responce 4.x 5.x print count-only

I use this function in dude to monitor the number of firewall connections on a hotspot.

ros_command("ip firewall connection print count-only")

With the upgrade from ros 4 to ros 5 i do see that there is more coming back then only numbers.
Behind the number there are two extra characters. ( cr lf maybe ?)
Should i make some extra scripting filter to remove the two characters ?.
Can i use some extra options from the ros_command to prevent this problem ?

I have the same promlem!

I found i little workaround:

but it works very unstable! This functoin return “timeout” after 2-3 hours working.

How to fix this problem whith “left” symbols on the end of value?