I don't get it

there is no trim() in both of your code snippets

chr(10) = LF
chr(13) = CR
chr(9) = a TAB

too tired to run that atm

Oh, and how about '"' + $test + '"'



Edited by Jochen (2015-02-04 06:10 PM)
_________________________