str = str.slice(0, find) + val + str.slice(find + fr.length, str.length)