extract math word tokens