Replace regexp by string replacement