Fixed modify_copying_text bug that didn't replace multiple values on the same line