reverting change on lastIndexOf extensions