Coding standards fix

See #5406

Addresses:
1. not allowing trailing space
2. using lowercase keywords (false, true, null)

Not sure if we want to merge it while still merging from 1.8 to master as it may cause conflicts.

RegExps used:
```
([;\{\}\(\),.])[ \t]+\r?\n
([^a-zA-Z0-9_])TRUE([^a-zA-Z0-9_])
([^a-zA-Z0-9_])FALSE([^a-zA-Z0-9_])
([^a-zA-Z0-9_])NULL([^a-zA-Z0-9_])
```