capitalize method

String capitalize(
  1. String value
)

Capitalize each word inside string Example: your name => Your Name, your name => Your name

Implementation

static String capitalize(String value) {
  if (isNullOrBlank(value)) return null;
  return value.split(' ').map(capitalizeFirst).join(' ');
}