Why was this "lastIndexOf", sohuld be "indexOf"