Fixes the strip url function