Fix issue where blank strings are logged to the console