add check for null cigar string