Check empty string instead of null.