Travelling by train can be expensive, so it's crucial to cut costs where you can, particularly with rail fares across Britain having risen by 5.1% in 2025, and the price of railcards having gone up.
This is similar to String#split(), but that one splits on all the occurrences, not just the first one.