string replacement version dependent