Replace Function In Python For String