added some string utilities