Python Program For String Operation In Selenium