A blank, non-empty string now returns null.

Corrected as per @lsmith so that a string of nothing but whitespace
now returns null and not 0 as before.
Changed tests to account for this change.