def convert_detector(old_detector):
    """
    
    Convert an old detector string into a new string.
    
    NOTE: Only exists to support old data formats.
    
    """
    if old_detector:
        old_detector = old_detector.strip() # Strip off superfluous white space
    if old_detector == 'IM':
        return 'MIRIMAGE'
    elif old_detector == 'LW':
        return 'MIRIFULONG'
    elif old_detector == 'SW':
        return 'MIRIFUSHORT'
    else:
        # For any other value, return the same string
        return old_detector