def formatRead(raw_barcode, corrected_barcode, title, sequence, quality):
    """
    Takes three components of fastq file + raw and corrected barcodes and stich them together in a string
    """
        
    # for bowtie, anything after space in name will go to SAM
    # remove existing comments as they may not be properly formatted
    mod_title = title.split(" ")[0]
    
    mod_title +=  " CB:Z:" + corrected_barcode + "\tCR:Z:" + raw_barcode

    return("@%s\n%s\n+\n%s\n" % (mod_title, sequence, quality))