Realized replace only replaces first match. Edited to replace all matches.