replace a part of a string by another string