def normalize_job_id(job_id):
    """Convert the job id into job_id, array_id."""
    if '_' in job_id:
        job_id, array_id = job_id.split('_')
        job_id = job_id.strip()
        array_id = array_id.strip()
    else:
        array_id = None
    return job_id, array_id
