get last substing of an URL