replace split/join by replace in string operations