Fixed 2 of 3 bugs in sendingmessages. Still did nott figureout how to resolve the whitespace messages being sent issue