combineWordsWithSpecialChar method
Implementation
String combineWordsWithSpecialChar(String specialCharacter) {
// Split the input string into a list of words.
final List<String> words = this.split(' ');
// Join the words in the list using the provided special character.
final String result = words.join(specialCharacter);
// Convert the result to lowercase and return it.
return result;
}