function ind = word2index(word)
% Convert an ASCII string to a number
ind = 0;
for k=1:length(word)
    ind = 128*ind + word(k);
end
