add STR() macro and remove_ref class
code gen source.