str.capitalize()
makes the first character of a given string uppercase.
str.allCaps()
makes all characters uppercase.
str.capitalizeWords()
makes the first character of each word uppercase.
str.removeExtraSpaces()
removes all spaces from the beginning and end of a string along with any extra spaces in the middle. If more than one space appears in the middle of a string it is replaced by a single space.
str.kebobCase()
makes all characters lowercase, removes extra spaces and replaces spaces with the hyphen "-".
str.snakeCase()
makes all characters lowercase, removes extra space and replaces spaces with an underscore "_".
str.camelCase()
lowercases the first character of the first word. Then uppercases the first character of all other words, and removes all spaces.
str.shift()
takes the first character of a string and moves it to the end of the string. Optional second parameter that sets the number of characters to shift.
str.makeHashTag()
converts the given string to a hash tag. If the given string has more than three words the three longest will make the hash tag.
str.isEmpty()
returns true if the given string is empty or contains only whitespace.