Isn't there a `StringSplitOptions` or something you could use here?