capitalizeAndLowercaseAnyWord function

String capitalizeAndLowercaseAnyWord(
  1. String string
)

Capitalize the first character of any word in the string string and lowercase the others (using toUpperCase() and toLowerCase() respectively). The method also execute am implicit trim() on the atring

Implementation

String capitalizeAndLowercaseAnyWord(String string) =>
    string.capitalizeAndLowercaseAnyWord();