def get_picard_max_records_string(max_records: str) -> str:
    """Get the max records string for Picard.

    Create the 'MAX_RECORDS_IN_RAM' parameter using `max_records`. If
    `max_records` is empty, an empty string is returned.
    """
    if max_records is None or max_records == "":
        return ""
    else:
        return " MAX_RECORDS_IN_RAM=%d" % int(max_records)