'Python' Style String Functions
Capitalize the first character of each sentence
Perform case folding on strings
Center a string in a field of a given width
Check if string contains a substring
Count occurrences of a substring in a string
Check if string ends with a specified suffix
Expand tabs in a string to spaces
Find the first occurrence of a substring in a string
Check if string is alphanumeric
Check if string contains only alphabetical characters
Check if string contains only ascii characters
Check if string contains only decimal characters
Check if string contains only digits
Check if string is in lowercase
Check if string contains only numeric characters
Check if string contains only whitespace characters
Check if string is in title case
Check if string is in uppercase
Join elements into a single string with a separator
Left-justify string in a field of a given width
Convert string to lowercase
Left strip characters from a string
Normalize whitespace in a string
Remove a prefix from a string
Remove a suffix from a string
Replace substring in a string
Find the last occurrence of a substring in a string
Right-justify string in a field of a given width
Right strip characters from a string
Slice substrings from a string
Split string into substrings
Split string into lines
Check if string starts with a specified prefix
Strip characters from both ends of a string
Swap uppercase and lowercase characters in a string
Convert string to title case
Convert string to uppercase
A comprehensive set of string manipulation functions based on those found in 'Python' without relying on 'reticulate'. It provides functions that intend to (1) make it easier for users familiar with 'Python' to work with strings, (2) reduce the complexity often associated with string operations, (3) and enable users to write more readable and maintainable code that manipulates strings.
Useful links