Check nil and empty string.