Use `start_with?` instead of `index == 0`.
See comment in commit 11652b58b5f9c079fe69734ea6841efdae26953b