Fixed bug in the send type reading. Apparently GTK passes the newline so you have to trim the strings.