Update generate to add string to generated codes