def substring(i): length = i.pop() start = i.pop() string = i.pop() i.push(utils.bibtex_substring(string, start, length))