lib/responses.js
function removePrefix(str, prefixToken) {
  const index =  str.indexOf(prefixToken);

  if (index > -1) {
    str = str.substr(index + prefixToken.length).trim();
  }
  return str;
}
function removePrefix(str, prefixToken) {
  const index =  str.indexOf(prefixToken);

  if (index > -1) {
    str = str.substr(index + prefixToken.length).trim();
  }
  return str;
}
function removePrefix ( str , prefixToken ) { const index = str . indexOf ( prefixToken ) ; if ( index > - 1 ) { str = str . substr ( index + prefixToken . length ) . trim ( ) ; } return str ; }
Finds prefixToken, and removes it and anything before it.

@param {string} str
@param {string} prefixToken
@returns {string}
Finds prefixToken and removes it and anything before it .