prevents users from entering empty strings in game chats