something is weird here. I got the same result on my laptop as you.
at work where I posted that I got:
 Code:
"
        "t


ok, back to giving you an example that actually has the issue...

it seems that kixtart processes tabs, linefeeds and spaces as spaces but not carriage returns, as witnessed by this simple test:
 Code:
$test=" some text "+@crlf

'"' trim($test) '"'

get $

here the result is exactly the same as with the original example.
the weird part comes that in my code that experienced issues, there was CRLF after a space and that space never got removed until I did join(split()) on all special characters. seems that dealing with the chr(13) would have been enough.
_________________________
!

download KiXnet