It seems that having a string that contains the characters { or } is rejected during regex processing. I can understand that these are reserved cha
{
}
You can use
java.util.regex.Pattern.quote(java.lang.String)
to escape meta characters used by regular expressions.