elixr string slice code example Example: how to split string in elixir String.split(variable, " ") String.split(variable, [" ", "(", ")"])