License is Not in Correct Format Error for HAA License

How to solve 'The cluster key is not in a valid format' error for HAA License?

Ensure that the license is in the below format: 

----- LICENSE START -----

<License key-> replace the space with new line>

----- LICENSE END -----

 

Sample key :

----- LICENSE START -----

ABC/DUMMYTqL7bAt18BpZ/WxBtRoNjEueVxBmvtBp930djD0qNkoViwlYDaf

Vi07qtzzrcpAskjdgfiuysisudfisudgfj+Uj2EYuAYQPhfhdOZ9BsKdUN0L9P6W

/vIojRUucNX0CzEsSpwKZyjhdusdguCZWitXwUPOvs7sSG5M/jAR/HE1vzsE

GzMNrbqx2xsBHUbCJh6FkyDUMMYGqPxyU+1K/VyaZER6HCwcOgHkwCI/cuGj

sTX/+6U/BWYIUOguQeIGcMYyk5ZrldIJrcVzDUMMYnunyDYKSU0vqf2+9Wb9

TbFg4xP/Woul1zSpSvvznYcTj0CVPNePfqovHr7YcDEF

----- LICENSE END -----