- move some string functions out to lib/str.[ch], add str_eq()