The title speaks for it self. I've got this string
"Dog - food"
I want to drop all characters following the specific character "-"
Including the specific character chosen. This is my desired output
"Dog"
This is only a simple example. I intend to use this on much larger and dynamic strings.