minor cleanups to CharInput