comp B is just displaying what is sent in COMP A
Why don't you format the data either before sending or after receiving to display it according to your need.

There seems to be no problem with senddata and getdata