updated join function to print nothing for keys with None
values and to print only the key portion for keys
with empty string values.