Prefer initial pattern over unclean regex in toString()