splitting strings the right way