Can you clarify what's going on with a comment?

Why is it important to get rid of empty strings in `val`? What about `None`?