templateReplace to Utils class