fixed empty string check