Cleaner way of checking for a dash and stripping text.