add string module and finish sendmessage function