remove unnessecary replace from template, require white space after hash