making a little more progress on the stringReplace funtion