Completed implementation of sending/receiving of strings