# How to normalize function params

**URL:** <https://forum.elixirforum.com/t/how-to-normalize-function-params/44091>\
**Category:** Questions\
**Tags:** elixirconf2021\
**Created:** [November 25, 2021, 12:25pm UTC](https://forum.elixirforum.com/t/how-to-normalize-function-params/44091 "2021-11-25T12:25:47Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![vrcca](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/vrcca/32/14191_2.png) [@vrcca](https://forum.elixirforum.com/u/vrcca)\
**Post date:** [November 28, 2021, 1:36pm UTC](https://forum.elixirforum.com/t/how-to-normalize-function-params/44091/9 "2021-11-28T13:36:45Z")

</div>

I’d change [String.to\_atom](https://hexdocs.pm/elixir/String.html#to_atom/1) by [String.to\_existing\_atom](https://hexdocs.pm/elixir/String.html#to_existing_atom/1), since this data comes from untrusted source.

---

_[View the full topic](https://forum.elixirforum.com/t/how-to-normalize-function-params/44091)._
