Betterway to split url