The ~ character can be used at the start and end of interpolation sequences to trim off whitespace in neighboring literals, with the goal of allowing extra whitespace to be included for readability without including it in the resulting string.
This allows calling applications to deal with bare templates, e.g. loaded from separate files referenced in a main configuration.