Actual code from the first result when googling "How to get the first word in a string python". I was expecting str[:str.index('_')] : r/ProgrammerHumor
Finding string indices - Prompting - OpenAI Developer Forum
Ruby Basic exercises: Check whether a string 'Java' appears at index 1 in a given sting - w3resource
4.2 index() and find() method - Python - DEV Community
Ruby Substring Examples - Dot Net Perls
C# 8 – Excelling at Indexes | Twilio
Ruby on Rails — Custom Routes and Namespace | by Jelena Stjepanović | Medium
Working With Strings In Ruby – All the Important Methods You Need to Know - DEV Community
Ruby- Remove Elements From An Array | Programmingresources Wiki | Fandom
How do I remove a substring after a certain character in a string using Ruby? - Stack Overflow
Ruby String index, rindex: Find Strings - Dot Net Perls