Use attach instead of addValidator which is deprecated
Add missing closing parenthesis
Remove space after function call
Use same variable name as in the previous example
Merge pull request #977 from dhaaker/fix/input-filter

Minor fixes - input filter
Merge branch 'hotfix/977'

Close #977