precompile regex / stringutil