The lastIndexOf() method accepts a second parameter as the starting position for the search.
Remember that the lastIndexOf() method searches backwards, so position 15 means start the search at position 15, and search to the beginning.