Avoid running through the legacy template code if no dollar signs are in strings.