Input | A text surrounded by single or double quotes. |
Output | A string containing the text. |
Input | A string and a number representing the index. |
Output | The character at the specified index. |
Input | A string and two numbers representing the start and end indices. |
Output | The substring from the start index to the end index. |
Input | Two strings. |
Output | True if the first string starts with the second string. False otherwise. |
Input | Two strings. |
Output | True if the first string ends with the second string. False otherwise. |
Input | A string and two substrings. |
Output | A new string with all occurrences of the first substring replaced by the second substring. |
Input | A string. |
Output | A new string converted to uppercase. |
Input | A string. |
Output | A new string converted to lowercase. |
Input | A string. |
Output | A new string with leading and trailing whitespace removed. |
Input | A string and a regex pattern. |
Output | True if the string matches the regex pattern. False otherwise. |
Input | A string. |
Output | The length of the string. |
Input | Two strings. |
Output | The concatenation of the two strings. |
Input | A string. |
Output | The first character of the string. |
Input | A string. |
Output | The last character of the string. |
Input | A string. |
Output | A new string without its last character. |
Input | A string. |
Output | A new string without its first character. |
Input | A string and a number representing the index. |
Output | The character at the specified index. |
Input | A string. |
Output | True if the string is empty. False otherwise. |
Input | A string. |
Output | True if the string is not empty. False otherwise. |
Input | A string and an argument of any type. |
Output | True if the string contains the argument. False otherwise. |
Input | A string and a number representing the number of characters. |
Output | The first n characters of the string. |
Input | A string and a number representing the number of characters. |
Output | A new string without the first n characters. |
Input | A string and a number representing the index. |
Output | A new string with the character at the specified index removed. |
Input | A string. |
Output | A new string with its characters in reverse order. |
Input | A string. |
Output | A list of the string's bytes. |
Input | A string and any value. |
Output | The index of the first occurrence of the value in the list, or -1 if the value is not found. |
Input | A string, a number representing the minimum length, and a string to pad with. |
Output | A new string padded on the left with the specified padding. |
Input | A string, a number representing the minimum length, and a string to pad with. |
Output | A new string padded on the right with the specified padding. |
Input | A string and a separator string. |
Output | A list of the string's substrings separated by the separator. |
Inputs | Two strings. |
Output | 1 if the first string is bigger than the second. -1 if it is the smaller. 0 if they are equal. |