Better empty string checking mechanism.