Add "joomla/string": "~3.0" to the require block in your composer.json and then run composer install.
{
	"require": {
		"joomla/string": "~3.0"
	}
}Alternatively, you can simply run the following from the command line:
composer require joomla/string "~3.0"