Static
capitalizeCapitalize the first letter of a string
The string to capitalize
The capitalized string
Static
escapeEscape HTML special characters
The string to escape
The HTML-escaped string
Static
isCheck if a string is empty or consists only of whitespace
The string to check
True if the string is empty or whitespace-only
Static
padPad string on left/right
The string to pad
Target length after padding
Character to use for padding (default: ' ')
Side to pad: 'left' or 'right' (default: 'right')
The padded string
Static
repeatRepeat a string multiple times
The string to repeat
Number of times to repeat (default: 1)
The repeated string
Static
replaceReplace all occurrences of a substring
The source string
The substring to search for
The replacement string
The string with all occurrences replaced
Static
stripStrip HTML tags from a string
The string containing HTML
The string with HTML tags removed
Static
toConvert string to camelCase
The string to convert
The camelCase string
Static
toConvert string to kebab-case
The string to convert
The kebab-case string
Static
toConvert string to snake_case
The string to convert
The snake_case string
Static
truncateTruncate string to a given length with ellipsis
The string to truncate
Maximum length before truncation (default: 50)
The truncated string
VelocityUI String Utilities Collection of common string manipulation functions