isBracketed
Returns true if this trimmed String starts with startChar and ends with endChar.
As with isSingleQuoted, the trimmed string must be at least two characters long, so a single character is not bracketed even when startChar and endChar are the same.
Parameters
startChar
the expected opening character (default '[')
endChar
the expected closing character (default ']')