Simplification of regex bloat
Template content replacement