Remove Text from a string.

Remove Text from a string.

I was wondering if there was anyway to display a certain part of a string that appears before a dash.

Example:

Report:
- Item Record: R0000-00

Form:
- Display: R0000