Stripping Templates of spaces and new lines