Replaced generate_name with generate_string

Please review it
Thanks