Using 'replace-regexp-in-string' as much as possible