fix for issue #306

Wrote a quick `string_is_empty()` function to fix sending empty messages.