update char[]