Ok, my script looks kinda like this on 1:TEXT:*New Demo*:#channel:/write C:\file.txt /Demo_today/ $3 /By_zorin and I need the space before $3 and after $3 to go away when its written to the file. So that in file.txt the text will look like /Demo_today/Battlefield_2_demo/By_zorin and not like /Demo_today/ Battlefield_2_demo /By_zorin