You should write:
String.upcase("hello world") |> String.split |> Enum.join(" // ")
Notice here two points:
f(x) |> g
equals tog(f(x))
, whilef (x) |> g
equals tof(g(x))
(the whitespace affects operator precedence).String.split("hello world") => ["hello", "world"]
andString.upcase(["hello", "world"])
will not work.