Adding support to string functions in object-oriented style