emptry string check improved