Replace generate_name with generate string