rename char to chr