String Module¶
The string
module provides methods for string manipulation.
Available Methods:¶
upper
¶
Converts the string on top of the stack to uppercase.
Usage:
Example:
lower
¶
Converts the string on top of the stack to lowercase.
Usage:
Example:
split
¶
Splits the string on top of the stack by the specified separator and pushes the resulting substrings onto the stack in reverse order. This ensures the first part of the string is on the top of the stack. To split a string into individual characters, you can use an empty string as a separator.
Usage:
Example:
Another example: