Example, The quick brown fox jumps over the lazy dog

If I do this

var %line $1-
$count(%line,$chr(32))
echo @Result Final Result: $1-6


The output would show: The quick brown fox jumps over

BUT - Not all lines are the same, I just want to get rid of the last 3 words from the end (they're all randoms but always 3 words)

Then if I do this which I thought might work but it doesn't seem to do it.

var %line $1-
var %word $calc($count(%line,$chr(32))-3)
echo @Result Final Result: $1- $+ %word


It shows error i.e. The quick brown fox jumps over the lazy dog9

Help me understand a bit more mIRC scripting? - This is annoyning cos I thought I did it correctly but keeps coming out wrong over and over again frown