{picky-teaching-mode-on} You are NOT "setting a string to be null"
You appear to be trying to set a String reference variable to null - as in
String abc = null; // No new String object exists at this point
If you use the right words the concepts become much easier.
{picky-teaching-mode-off}
Bill