String: Pull characters before "-"

#1
Hi guys,

I have a string variable that looks something like this: MMDC-6MA. I need to extract the first letters before the sign "-", So I need GMDC.

Any ideas?

Thank you,
Marvin