I did not test it, but I thought the ```if '.' not in value: append('')``` should solve this.