Maybe use ``str_replace()`` instead for simplicity?