Updating a string to use .replace instead of concatenation.