inreplace's first parameter can be an array, so let's pass the array to inreplace rather than eaching it here