sometime the first argument is empty and in that case we need to remove the comma