a couple of string utilities