Fixed cigar string issues in SAM.cpp and Bam.cpp