adds numbers from string using provided delimeter