The try/catch won't do anything for the split statements, so don't worry about that. You could add a test for illegal keys and values but that feels like over-engineering to me.