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