Two new utilities: find substrings in strings from the beginning and from the end.
We are responsible for fixing the whole string; so we need to find what comes before the word before the dash and which word comes after the end of the first word after the dash.