Fix for #817 batman sample does not trim text input