The function takes a string input and replaces specific characters ('c', 'd', 'm', 'n', 'o', 'r') with others ('e', 'g', 'y', 'h', 'p', 't') respectively. It is case-insensitive.

[CODE]:
```python
def transform(input_string):
    translation_table = str.maketrans("cdmnorCDMNOR", "egyhptEGYHPT")
    return input_string.translate(translation_table)
```