We can pattern-match Elixir strings like any other binaries, with <> for concatenation and <<…>> to specify bit patterns: defmodule Example do def run_command("say:" <>...
https://thepugautomatic.com/2016/01/pattern-matching-complex-strings/