handle empry strings in text