Creating constructor for sending string data interface.