SONAR-766 Remove string duplication and protect constructor