file.replace: append/prepend_if_not_found
file.replace(append_if_not_found) - test units
Merge pull request #11149 from ze42/dev_replace

file.append(append/prepend_if_not_found)