trim
Removes whitespace from both ends of a string.hello world
truncate
Shortens text to a specified length with optional suffix.
Examples:
This is a very long descriptio...
substring
Extracts a portion of a string.
Examples:
Hello
World
replace
Replaces all occurrences of a string with another.
Examples:
Hello Universe
repeat
Repeats a string a specified number of times.
Examples:
*****
padStart
Pads the beginning of a string to reach a specified length.
Examples:
000042
padEnd
Pads the end of a string to reach a specified length.
Examples:
Price...............$99.00
reverse
Reverses the characters in a string.olleh
removeSpaces
Removes all whitespace from a string.helloworldexample
Use cases:
- Phone numbers
- Credit card numbers (for processing)
- Compact identifiers

