add some logic when sending string to be compatible with new input file.