new implement string to char