'in-place' string modifications in python,s = ''.join(F(c) for c in s)