removeMatchingWrappingBrackets method
Removes the first and last characters if they are a matching pair of brackets.
Implementation
String removeMatchingWrappingBrackets() =>
// Use isBracketWrapped to check, then remove the outer characters.
isBracketWrapped() ? substring(1, length - 1) : this;