convert "nil" string to nil object.