Modify Character In String Python Functions