refactor into methods
implement sum for non-space delimiters