var txt = "Hello how are you, Hello again";
var len = txt.lastIndexOf("Hello");