added a quick null string checK