Optimize string split