Use gsub! to replace every instance of the key in a string.

Closes #1