{{- /* Trim whitespace from the beginning and end of a string */ -}} {{- return (. | replaceRE `[\s]+` " " | strings.TrimSpace) -}}