string_util module¶
string_util.py
Misc. string processing functions
-
molssi_devops_2019.string_util.title_case(sentence)¶ Convert a string to title case.
Title case means that the first character of every word is capitalized.
- sentence : string
- String to be converted to title case
- output : string
- Input string in title case
>>> title_case(ThIs iS a StRingG tO be COnvERted.) 'This Is a String To Be Converted.'