check for empty and nil string