All the configuration files are sensitive to special characters, so it’s likely not the text, it’s how you are getting it to the machines configuration file.
I.e. if you copy paste via an editor that uses cf/new line characters (hidden usually unless displayed).
Make sure you just copy the block using the copy symbol top right that looks like this here..