format method

String format([
  1. String format = 'l-u'
])

Implementation

String format([String format = 'l-u']) {
  return format.replaceAll('l', '$lower').replaceAll('u', '$upper');
}