Fix typos in function names

Refactor char to chr and expanded_code_getname to expand_code_getname