Used python's join operator and changed input variable names.