string splice fix