code: function consumeWhitespace(remaining) {
    var match = remaining.match(/^\s+/);
  
    if (match) {
      var consumed = match[0];
      remaining = remaining.substring(consumed.length);
    }
  
    return remaining;
  }
docs: Consume all the leading whitespace
  @param {string} remaining The text to consume
  @returns The text with the leading whitespace removed