Replaces single-expression string templates with the expression itself and adds a toString() call if necessary.