Basic string prefix matching functions for tokenization. Based on previous parser-writing experience, I don't think I'll need a general-purpose regexp library.