Make splitting more robust to periods in strings