modify inputchar