❔ How to get substring up until a certain pattern is seen? - C#