startsAndEndsWith method
Returns true if this string starts and ends with the same given string If whitespaces can be present is better to execute first a trim() call.
Implementation
bool startsAndEndsWith(String delimiter) {
if (startsWith(delimiter) && endsWith(delimiter)) {
return true;
}
return false;
}