I am trying to make an intellisense system that uses string.find to see what keywords you are trying to type in. My problem is that if a keyword is “hello” and I type “ello” it will still come up. I want it to only come up if the string matches from the first bit of the string. For example it should only suggest the word “hello” if I start with a H. Any help is appreciated.
What I have tried:
Since string.find() returns which position it found the string, I checked if the position was 1 but it didn’t seem to work.