public static String flattenReservedTokens ( String str ) { if ( StringUtils . isBlank ( str ) ) { return str ; } return str . replaceAll ( "\\{\\[" , "{" ) . replaceAll ( "\\]\\}" , "}" ) ; }
Removes the square brackets that signify reserved from inside the tokens in the string .