StaticcapitalizeCapitalizes the first character of the string.
The string to capitalize.
The string with its first character in uppercase.
StaticcharReturns the Unicode code point of the first character of the string.
The input string.
The character code of the first character.
StaticcountCounts the number of times a substring occurs in a string.
The input string.
The substring to count.
The count of occurrences.
StaticleftReturns the leftmost n characters of a string.
The input string.
The number of characters.
The substring containing the first n characters.
StaticpadPads the left side of a string with a given character up to the specified length.
The input string.
The desired total length.
The padding character (default: space).
The padded string.
StaticpadPads the right side of a string with a given character up to the specified length.
The input string.
The desired total length.
The padding character (default: space).
The padded string.
StaticremoveRemoves all instances of a substring from a string.
The input string.
The substring to remove.
The string with all instances of subStr removed.
StaticremoveRemoves all digit characters from a string.
The input string.
The string with digits removed.
StaticremoveRemoves all letter characters from a string.
The input string.
The string with letters removed.
StaticremoveRemoves all non-alphanumeric characters from a string.
The input string.
The string with non-alphanumeric characters removed.
StaticremoveRemoves all whitespace characters from a string.
The string to process.
The string without any whitespace.
StaticrepeatRepeats the input string a specified number of times.
The string to repeat.
The number of times to repeat.
The concatenated result string.
StaticreverseReverses the characters in a string.
The input string.
The reversed string.
StaticrightReturns the rightmost n characters of a string.
The input string.
The number of characters.
The substring containing the last n characters.
StaticsplitSplits a string by a delimiter or regular expression.
The string to split.
The delimiter string or RegExp.
Optionallimit: numberOptional maximum number of splits.
An array of split substrings.
StatictoConverts a string to camelCase.
The input string.
The camelCase version of the input.
StatictoConverts a string or number to an integer (using base 10).
The string or number to convert.
The integer value.
StatictoConverts a string to kebab-case.
The input string.
The kebab-case version of the input.
StatictoConverts all characters in a string to lowercase.
The string to convert.
The lowercase version of the input string.
StatictoConverts a string to a floating-point number, returning a fallback if conversion fails.
The string to convert.
The fallback value if conversion fails (default: 0).
The converted number or the fallback.
StatictoConverts a string to PascalCase.
The input string.
The PascalCase version of the input.
StatictoConverts a string to snake_case.
The input string.
The snake_case version of the input.
StatictoConverts all characters in a string to uppercase.
The string to convert.
The uppercase version of the input string.
StatictrimRemoves whitespace from both ends of a string.
The string to trim.
The trimmed string.
StatictruncateTruncates a string to a maximum length.
The input string.
The maximum allowed length.
The truncated string, or the original if shorter than maxLength.
A static utility class for common and advanced string transformation and manipulation tasks.