Send string to and from raspberry pi

Also, I don't know how to perform a loop back test on a USB connection; I have read the internet, I can't find any useful information on how to do it.