How to make String with Placeholders?

You should generally be using the URI module to deal with URLs: URI — Elixir v1.20.2
That will handle the escaping, otherwise you will have plenty of surprises with strange data.