How to detect if a string starts with another string

I had that too, until @Salathe pointed out to me that functions to search in arrays are always needle, haystack whereas functions to search in strings are always haystack, needle. Once you know that it’s not that hard anymore :slight_smile:

3 Likes