What does replace() do?

It replaces a part of a string with another valueIt creates an empty string

It replaces a part of a string with another value.