STRING, THE EXCEPTION - Strings can be Null or Empty or Unassigned

https://www.codecademy.com/courses/learn-c-sharp/lessons/csharp-string-the-exception/exercises/null-empty-unassigned?action=resume_content_item

Step 2. Cannot proceed without strict if/else using brackets {}. All you ask for is an if/else statement. C# and all C style languages allow the use of no brackets in an if/else statement as long as one statement follows the expression. Also, ternary is not allowed either. Not sure if that was intentional or not, but its also perfectly legal alternative (unless it was explicitly disabled here).

I also had to remove the comments on the line prior to the start of the if/else statement to get it to pass (not sure why).

This is the code that passes

using System;

namespace StringTheException
{
  class Program
  {
    static void Main(string[] args)
    {
      //Using Console.Write() and Console.ReadLine(), ask the user for input and capture it in a variable.
      Console.WriteLine("Input:");
      string s = Console.ReadLine();
      //Write an if-else statement that checks for a null or empty string. If it is null, print out the message:
      if (String.IsNullOrEmpty(s))
      {
        Console.WriteLine("You didn't enter anything!");
      }
      else
      {
        Console.WriteLine("Thank you for your submission!");
      }
    }
  }
}

This is the code that will not pass, but is acceptable in all C style languages.

using System;

namespace StringTheException
{
  class Program
  {
    static void Main(string[] args)
    {
      //Using Console.Write() and Console.ReadLine(), ask the user for input and capture it in a variable.
      Console.WriteLine("Input:");
      string s = Console.ReadLine();
      //Write an if-else statement that checks for a null or empty string. If it is null, print out the message:
      if (String.IsNullOrEmpty(s))
        Console.WriteLine("You didn't enter anything!");
      else
        Console.WriteLine("Thank you for your submission!");
    }
  }
}