added second function getNewString