Reverse input of a string using binding and controller