{{- $protocol := "tel" -}} {{- $tel := . -}} {{- $telWithProtocol := $tel -}} {{- if strings.HasPrefix $tel $protocol -}} {{- $tel = substr $tel 4 -}} {{- else -}} {{- $telWithProtocol := print $protocol ":" (replace $tel " " "") -}} {{- end -}} {{ range $index := seq (sub (len $tel) 1) 0}}{{ substr $tel $index 1}}{{if modBool $index 2}} {{ end }}{{ end }}