str3 = ~r/another/ |> Regex.replace(str2, fn x -> "#{String.upcase(x)}" end)