string s = "Hello world!";
String s = "Hello world!";
There is no difference. String represents System.String which is a .NET Framework type. string is an alias for the System.String. Both are compiled to the System.String in the intermediate language. It’s proper to use whichever version you prefer, but below are a few best practices.
string place = "world";
string greet = String.Format("Hello {0}!", place);