remove newline from template