Command blocks trim spaces when checking syntax, but do not when running commands (which is hopefully intended). This leads to situations where no syntax error is shown, but the command will not be executed.
- Paste the following in a command block (include the trailing spaces)
No syntax error is shown
- Activate the command block
It fails due to the trailing spaces