Using string.replace in Javascript

Using the replace method to modify a string
Source: Codementor