Let's also pass the size of newStr in his replace method