Trim whitespace characters from the beginning and end of a string.
Remove a UTF-8 byte order mark (BOM) from the beginning of a string.
Trim whitespace characters from the end of a string.
Remove the last character of a string.
Trim whitespace characters from the beginning of a string.
Trim `n` characters from the beginning of a string.
Trim `n` whitespace characters from the end of a string.