def record_to_fastq_string(record, record_name=None):
    """Return the converted fastq string

    Parameters
    ----------
    record : screed record
        record in fasta
    record_name: str
        specify if you want to rename the record with a new barcode name
    Returns
    -------
    output : str
        convert recotd to fastq string
    """
    if record_name is None:
        result = "@{}\n{}\n+\n{}\n".format(
            record['name'], record['sequence'], record['quality'])
    else:
        result = "@{}\n{}\n+\n{}\n".format(
            record_name, record['sequence'], record['quality'])
    return result