Strip trailing whitespace
Never use 'var'

Close #20