Improved input line

Does not send empty messages