Better calculate newStr