Change text event code generation string representation