Since Hepburn was fluent in French, she played the same role (although the character's name was changed).
Hepburn, being proficient in French, took on the role of the character, even though the character's name was changed.