Added string handling functions