create basic string operations in python