The problem is that a-b -c becomes a - (b - c) while a-b-c becomes (a - b) - c. Spaces shouldn’t change the result.
a-b -c
a - (b - c)
a-b-c
(a - b) - c