titleToSnakeCase static method

String titleToSnakeCase(
  1. String input
)

Convert title (a string of words separated by spaces) to snake case.

Implementation

static String titleToSnakeCase(String input)
{
  return new _TitleToSnakeCase().convert(input).replaceAll(" ", "");
}