change char function