Fixed new string functions to correspond with the API-specification