import re


def sub_drive_names(drive):
    """Perform regex substitution actions on the drive name for better query results."""
    # Replace generic companies with real companies?
    drive = re.sub(r'JLMS', 'Lite-ON', drive)
    drive = re.sub(r'HL-DT-ST', 'LG Electronics', drive)
    drive = re.sub(r'Matshita', 'MATSHITA', drive)
    drive = re.sub(r'TSSTcorp(BD|CD|DVD)', r'TSSTcorp \1', drive)
    drive = re.sub(r'(\s+-\s|\s+)', ' ', drive)
    return drive