fix str to chr