modify char code