i didn't mean what the code does or not.
i meant what's the expected syntax, and what you can expect to be working correctly now and in the future.
the trim is there because spaces are allowed after the name.
anyway, at the moment there's no important reason for this rule, but i think we can ignore the problem of space^var.