No new line when hitting enter to send messages

Messages are now trimmed before being sent so that any extraneous spaces or new lines are removed from the message before being sent
Merge pull request #6 from pgoggijr/patch-1

No new line when hitting enter to send messages