Python Code For String Operations