How to pass string or table to a factory created object?

Basically, everytimes I have to change something to an instancied object after creation, I make its script receive a message, added with reading a table for details.