preventing editing before the first character or after the last
Merge branch 'master' of github.com:brownplt/captain-teach