removes comma from end of url if that happens