Updated string utilities to support terminal
Imported terminal