Replace in string by value from list