Use dap to replace words with numbers. Much faster.

Timing went from .5 sec for 100 to .05 sec for 100 and 5 sec for 10000.
Still need to convert numbers to integers. Currently numbers are in a
string separated by spaces.