Orderlycalls + Asterisk problem


I am using OrderlyCalls (API) with *. I run OrderlyCalls server on Windows and when i set extension through it i get an extra space.

call.setextension(“3000”) asterisk sees it as "3000 "
setextension is wrapper method for

println("SET EXTENSION " + msg) where msg is extension
does linux(asterisk) interprets crlf difrerent from win(i am not very familiar with linux)
if somleone knows solution i would be very greatfull to him.