Remove trailing whitespace
Snap incoming events to the grid