replaceVariables = function(pathTokens, suggestedPathTokens) {
      var replaced = suggestedPathTokens.map(function(token, position) {
        if (position < pathTokens.length - 1 && token.indexOf('{') === 0) {
          return pathTokens[position];
        } else {
          return token;
        }
      });
      return replaced;
    }
Replaces the variables on suggestedPathTokens({index}) for
actual values extracted from pathTokens

@param {Array} pathTokens tokens for the path to be suggested
@param {Array} suggestedPathTokens tokens for the suggested path
@return {Array} a new array with the variables from suggestedPathTokens
replaced by the actual values from pathTokens