function removeExist(s, t) {
  /*
  **  Remove all occurrences of a token in a string
  **    s  string to be processed
  **    t  token to be removed
  **  returns new string
  */
  i = s.indexOf(t);
  r = "";
  if (i == -1) return s;
  r += s.substring(0,i) + removeExist(s.substring(i + t.length), t);
  return r;
}

function getIndex(str){
  var txt = new String(str);
  var arr = txt.split('_');
  
  return arr[arr.length-1];
}
