RepoInitParsingException while setting property value with space in AEM
I am trying to add jcr:title property using SlingRepositoryInitializer (RepoInit) but getting below error.
#Root folder creation
create path /content/dam/my-site(sling:OrderedFolder mixin rep:AccessControllable)
create path /content/dam/my-site/jcr:content(nt:unstructured)
# Set properties
set properties on /content/dam/my-site/jcr:content
set jcr:title{String} to Hello Test
end
Error Log:-
13.03.2023 20:13:04.734 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: pid=org.apache.sling.jcr.repoinit.RepositoryInitializer~my-site)] com.adobe.granite.repository.impl.SlingRepositoryManager Exception in a SlingRepositoryInitializer: RepositoryInitializerFactory, references=[], scripts=1
org.apache.sling.repoinit.parser.RepoInitParsingException: Encountered " <STRING> "Test "" at line 19, column 44._Was expecting:_ "\n" ..._
at org.apache.sling.repoinit.parser.impl.RepoInitParserService.parse(RepoInitParserService.java:45) [org.apache.sling.repoinit.parser:1.6.14]
at org.apache.sling.jcr.repoinit.impl.RepositoryInitializerFactory.processRepository(RepositoryInitializerFactory.java:127) [org.apache.sling.jcr.repoinit:1.1.39.T20220426093723-a4cd7db]
at org.apache.sling.jcr.base.AbstractSlingRepositoryManager$2.addingService(AbstractSlingRepositoryManager.java:490) [org.apache.sling.jcr.base:3.1.10]
at org.apache.sling.jcr.base.AbstractSlingRepositoryManager$2.addingService(AbstractSlingRepositoryManager.java:479) [org.apache.sling.jcr.base:3.1.10]
The property is set when I tried with space but I wanted to have space(usually jcr:title may have content with space). I tried with with single/double quotes and baclslash(\) but it is working. Is there any other way to handle this usecase?