You can achieve this by creating your own class of strings, but as I understand it, you mean calling something like "THE String".toLower() , for example, in python. As far as I know, this is actually impossible.
Once again, your best chance is to make your own class so you can call it MyString("THE String").toLower() . Or just create a toLower function that takes a string and returns a toLower("THE String") string toLower("THE String")
source share