Frage im Vorstellungsgespräch bei Bloomberg

How to replace a keyword within a string without using extra space?