Adding string utilities, and exception class.