Make sure variable can be set to NULL if empty string before

I've changed the comparison operator to Identical (===) instead of Equal (==). Also included a testcase.