fix indent stripping and validation for multi-line string templates
(bug discovered by Enrique)