I can't change the return type since rename functions are expected to return `char*`. Would duplicating the string also solve the problem?