Added string length verification on message before sending