completed splitString function - completed whole parameter reading - ready for testing