Add support for entering a single item into the text box

If only one pair of items is entered, this will duplicate the items so that it will still draw a 'line' even if it goes no where