added a replaceStr function that replaces all occurances of a strPart in a string with a different strPart