added check string entity for empty