Fixed string.lastIndexOf